Skip to content

Commit

Permalink
chore: replace build-and-publish workflow with build-and-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
lozinsky committed Oct 23, 2023
1 parent c3dc0b9 commit 395b224
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and deploy

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: false

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

- name: Prepare
uses: ./.github/actions/prepare

- name: Build
run: npm run build

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist/'

- name: Deploy
id: deploy
uses: actions/deploy-pages@v2
26 changes: 0 additions & 26 deletions .github/workflows/build-and-publish.yml

This file was deleted.

0 comments on commit 395b224

Please sign in to comment.