Skip to content

Commit

Permalink
Update CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaermorchen committed Jul 10, 2023
1 parent c633c60 commit d46f661
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- master
pull_request: {}
workflow_dispatch:

concurrency:
group: ci-${{ github.head_ref || github.ref }}
Expand Down
29 changes: 23 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
name: Build and Deploy
name: Build and deploy demo site

on:
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
cache: yarn

- name: Install Dependencies
Expand All @@ -30,7 +47,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'test-app/dist/'
path: 'website/dist/'

- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit d46f661

Please sign in to comment.