-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (41 loc) · 1.42 KB
/
deploy-linux-dev.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
name: Deploy Linux Dev
on:
push:
tags:
- 'dev-*'
#for uploading release exe
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
environment: dev
steps:
- uses: actions/checkout@v3
- name: 'Create env file'
working-directory: ${{ github.workspace }}/nt-app/
run: |
touch .env
echo VUE_APP_HOSTNAME=${{ vars.VUE_APP_HOSTNAME }} >> .env
echo VUE_APP_NT_LOGIN_URL=${{ vars.VUE_APP_NT_LOGIN_URL }} >> .env
echo VUE_APP_LOBBY_SERVER_WS_URL_BASE=${{ vars.VUE_APP_LOBBY_SERVER_WS_URL_BASE }} >> .env
cat .env
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn workspace nt-app electron:build --publish never
- run: ls ${{ github.workspace }}/nt-app/dist_electron/
- working-directory: "${{ github.workspace }}/nt-app/dist_electron/"
run: |
mkdir ${{ github.workspace }}/build
cp ./latest-linux.yml ${{ github.workspace }}/build/latest-linux.yml
cp ./*.AppImage ${{ github.workspace }}/build/
- name: Upload files to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/build/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true