-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (44 loc) · 1.46 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: build and release and upload assets
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
make-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build-x86:
runs-on: ubuntu-latest
needs:
- make-release
steps:
- uses: actions/checkout@v3
- name: install podman
run: |
set -x
sudo apt-get remove -y podman docker-ce docker docker-engine docker.io containerd runc ||:
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_$( lsb_release -rs )/ /" | sudo tee /etc/apt/sources.list.d/podman.list /dev/null
sudo apt-get update --allow-unauthenticated --allow-insecure-repositories
sudo apt-get install -y podman
sudo apt autoremove -y
- run: podman build . -t poncho-builder
- run: podman run --rm -it -v "$(pwd)":'/poncho' poncho-builder
- run: mv target/scala-*/poncho-out poncho_x64
- uses: actions/upload-artifact@v3
with:
path: poncho_x64
name: poncho_x64
- uses: AButler/[email protected]
with:
files: poncho_x64
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}