-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.16 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
name: "release"
on:
push:
branches:
- "master"
jobs:
release:
name: "Release new version"
runs-on: ubuntu-latest
steps:
- name: "Checkout source code"
uses: "actions/checkout@v4"
with:
ref: ${{ github.ref }}
token: ${{ secrets.SOURCE_TREE_PROTECTED_BRANCH_TOKEN }}
- name: "cat package.json"
run: cat ./package.json
- name: "Automated Version Bump"
id: version-bump
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.SOURCE_TREE_PROTECTED_BRANCH_TOKEN }}
with:
version-type: "minor"
target-branch: "master"
tag-prefix: "v"
commit-message: "ci: bumps version to {{version}} [skip ci]"
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to fly.io
run: |
GITHUB_REPOSITORY=${{ github.repository }}
GITHUB_REPOSITORY_OWNER=${{ github.repository_owner }}
echo APP_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}
flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}