-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (52 loc) · 1.48 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
55
56
57
58
59
60
61
62
on:
push:
branches-ignore:
- '**'
tags:
- v*
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: production
url: 'https://leafapp.co'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set version file
run: echo "${GITHUB_REF#refs/*/}" > VERSION
- name: Install NPM Dependencies
run: npm ci
- name: Asset Packaging
run: npm run build
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.DEPLOY_SECRET_KEY }}
dep: deploy -vvv
deployer-version: "7.1.4"
- uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
with:
sourcemaps: './public/build/assets'
url_prefix: '~/build/assets'
version: ${{ env.RELEASE_VERSION }}
environment: production
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
name: ${{ env.RELEASE_VERSION }}
tag_name: ${{ env.RELEASE_VERSION }}
generate_release_notes: true