-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 1.04 KB
/
promote.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
name: "Danger Zone: promote latest staged fw to production"
on:
workflow_dispatch:
jobs:
tag:
runs-on: ubuntu-latest
name: Publish new release
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compare releases
# we check for dongle firmware, as this is considered the leading version
run: if cmp -s "staging/dongle_version.txt" "production/dongle_version.txt"; then exit 1; fi
- name: Overwrite production artifacts
run: |
cp staging/* production/
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "Sessy CI"
git add production/*
git commit -m "New production release"
git push
release:
name: Publish new release
uses: ChargedBV/sessy-updates/.github/workflows/release.yml@main
needs: tag
cloud:
name: Push new release to cloud
uses: ChargedBV/sessy-updates/.github/workflows/cloud.yml@main
needs: tag
secrets: inherit