Skip to content

Commit 511e2a8

Browse files
author
Salvatore Mazzarino
authored
feat: deploy netlify frontend with github action (#470)
1 parent ba258d8 commit 511e2a8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: '[Mainnet] Frontend'
2+
3+
on:
4+
push:
5+
tags:
6+
- 'frontend/v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Get version from tag
16+
id: git_tag
17+
run: |
18+
VERSION="${GITHUB_REF_NAME#frontend/-}"
19+
echo "version=$VERSION" >> $GITHUB_OUTPUT
20+
21+
- name: Publish
22+
uses: netlify/actions/cli@master
23+
with:
24+
args: deploy --build --context production --prod --message ${{ steps.get_tag.outputs.version }}
25+
env:
26+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
27+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 commit comments

Comments
 (0)