-
Notifications
You must be signed in to change notification settings - Fork 25
54 lines (46 loc) · 1.37 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
48
49
50
51
52
53
54
name: Release
on:
workflow_dispatch:
push:
branches: [main]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch --unshallow --tags
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: 103842
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- run: |
echo "GH_TOKEN=${{ steps.generate-token.outputs.token }}" >> $GITHUB_ENV
git config --global user.name "laughedelic[bot]"
git config --global user.email "103842+laughedelic[bot]@users.noreply.github.com"
- name: Install Auto
run: |
gh release download -R intuit/auto -p auto-linux.gz -D $HOME
gunzip -c $HOME/auto-linux.gz > $HOME/auto
chmod a+x $HOME/auto
echo $HOME >> $GITHUB_PATH
- name: Update release branch
run: |
git checkout release/v1
git merge main
- name: Build
shell: bash -l {0}
run: |
nvm use lts/gallium
npm install
npm run all
- name: Commit updated build
run: |
git add --force dist/ package-lock.json
git status
git commit -m 'build: update dist'
git log -1
- name: Create Release
run: |
auto latest --base-branch release/v1