Skip to content

Commit

Permalink
Merge pull request #147 from OpenWebhook/release/deploy-on-gh-pages
Browse files Browse the repository at this point in the history
Release/deploy on gh pages
  • Loading branch information
Samox authored Oct 19, 2022
2 parents 74297c2 + b1d7f81 commit 607cea1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- release/*
release:
types: [published]

jobs:
deploy:
runs-on: 'ubuntu-latest'
environment: github-pages
env:
VITE_HONEYBADGER_API_KEY: ${{ secrets.HONEYBADGER_API_KEY }}
VITE_POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
VITE_AUTH_TENANT_URL: ${{ secrets.AUTH_TENANT_URL }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: "yarn"
- run: yarn
- run: yarn predeploy
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
keep_files: true
destination_dir: latest
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
keep_files: true
destination_dir: ${{ github.ref }}

0 comments on commit 607cea1

Please sign in to comment.