-
Notifications
You must be signed in to change notification settings - Fork 3
26 lines (24 loc) · 878 Bytes
/
node.js.yml
File metadata and controls
26 lines (24 loc) · 878 Bytes
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
name: Build and Deploy
on: [push, workflow_dispatch]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Release
run: |
latestZipUrl=$(curl https://api.github.com/repos/videotogether/videotogether/releases/latest -s | jq -r '.zipball_url')
wget $latestZipUrl -O latest.zip
unzip latest.zip -d /tmp/latest
mkdir -p ./tmp
cp -r /tmp/latest/*/release ./tmp
ls ./tmp && ls -a
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: VideoTogether/VideoTogether.github.io
TARGET_BRANCH: main
BUILD_SCRIPT: yarn && yarn build && cp -r ./tmp/release/ ./.vitepress/dist/ && rm -rf tmp
BUILD_DIR: ./.vitepress/dist