Skip to content

Commit ec17a64

Browse files
committed
action deploy to dev repository
1 parent 5608935 commit ec17a64

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/dev.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy Dev
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Find Tag
14+
id: tagger
15+
uses: jimschubert/query-tag-action@v1
16+
with:
17+
include: 'v*'
18+
19+
- name: Set env
20+
run: |
21+
echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
22+
echo "git_branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
23+
24+
- name: Setup Node.js + cache
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "24"
28+
cache: "npm"
29+
cache-dependency-path: package-lock.json
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Build project
35+
run: npm run build
36+
env:
37+
VUE_APP_ROBONOMICS_UI_KEY: ${{ vars.VUE_APP_ROBONOMICS_UI_KEY }}
38+
VUE_APP_GIT_BRANCH: ${{ env.git_branch }}
39+
VUE_APP_GIT_TAG: ${{ steps.tagger.outputs.tag }}
40+
VUE_APP_GIT_SHA: ${{ env.git_hash }}
41+
42+
- name: Deploy
43+
uses: peaceiris/actions-gh-pages@v4
44+
with:
45+
personal_token: ${{ secrets.DEV_DEPLOY_TOKEN }}
46+
external_repository: airalab/dev-robonomics-app
47+
publish_branch: gh-pages
48+
publish_dir: ./dist
49+
cname: dev.robonomics.app

0 commit comments

Comments
 (0)