Skip to content

Commit

Permalink
fix: build and deploy to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgui committed Dec 26, 2023
1 parent 8b8e4f2 commit d7eabc5
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ on:
- "yarn.lock"
branches:
- develop

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
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:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: ⬇️ Checkout repo
uses: actions/checkout@v3

Expand All @@ -46,37 +54,23 @@ jobs:

- name: ⚙️ Setup Pages
if: success()
uses: actions/configure-pages@v1
uses: actions/configure-pages@v4

- name: 📁 Upload artifact
if: success()
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "./dist"

deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: 🚀 Deploy to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

1 comment on commit d7eabc5

@vercel
Copy link

@vercel vercel bot commented on d7eabc5 Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hrgui-github-io – ./

hrgui-github-io-hrgui.vercel.app
hrgui-github-io.vercel.app
hrgui-github-io-git-develop-hrgui.vercel.app

Please sign in to comment.