-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (30 loc) · 829 Bytes
/
main.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
name: Package and Release
on:
push:
tags:
- '*.*.*'
- '*.*.*-*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Run Docker command
run: |
chmod +x build.sh
docker run --rm -v ${PWD}:/protonvpn-bin archlinux su - -c"/protonvpn-bin/build.sh"
- name: Archive dist folder
uses: actions/upload-artifact@v4
with:
name: protonvpn-bin
path: protonvpn-bin-*.tar.zst
- name: Create Release and Upload Asset
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
files: ./protonvpn-bin-*.tar.zst