Update timeline #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Edgeserver | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
name: "🚚 Deploy" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 7.25.0 | |
- name: Set PNPM store path | |
run: "echo \"PNPM_STORE_PATH=$(pnpm store path)\" >> $GITHUB_ENV" | |
- name: Cache PNPM packages | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_STORE_PATH }} | |
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
pnpm-${{ runner.os }}- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Edgeserver Upload | |
uses: lvkdotsh/edgeserver-upload@master | |
with: | |
app_id: "177185204648022016" | |
server: https://app.edgeserver.io | |
token: ${{ secrets.SIGNAL_TOKEN }} | |
directory: dist/static |