-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.36 KB
/
create-pre-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
48
49
50
51
52
name: Create release candidate
on:
push:
branches:
- master
jobs:
pre-release:
name: Create release candidate
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Configure apkovl file location
run: |
sed -i \
-E 's/^(set release_name) \w+$/\1 pre-release/' \
./default.pxe ./manual.pxe
- name: Create Alpine overlay file (apkovl)
run: |
chmod 0600 apkovl/etc/iptables/rules*
tar czf apkovl.tar.gz \
--owner=0 \
--group=0 \
-C apkovl .
- name: Create development release tag
run: |
git config user.name Github Actions
git config user.email [email protected]
git tag --force "pre-release"
git push origin --tags --force
- name: Delete previous pre-release
run: |
gh release delete "pre-release" --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: Create new pre-release
run: |
gh release create "pre-release" \
--generate-notes \
--latest=false \
--prerelease \
--title "Release Candidate" \
*.pxe *.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}