-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.36 KB
/
create-dev-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 development releases
on:
push:
branches-ignore:
- master
- dependabot/*
jobs:
development:
name: Create development release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup branch name variable
run: echo "GIT_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- 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 iSH overlay file (ishovl)
run: |
tar czf ishovl.tar.gz \
--owner=0 \
--group=0 \
-C ishovl .
- name: Delete development release and tag
run: |
gh release delete "${GIT_BRANCH_NAME}" \
--yes \
--cleanup-tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: Create development release and tag
run: |
gh release create "${GIT_BRANCH_NAME}" \
--generate-notes \
--latest=false \
--target "${GITHUB_REF}" \
--title "Development: ${GIT_BRANCH_NAME}" \
*.pxe *.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}