Skip to content

Commit

Permalink
Update static.yml more refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sandykadam authored Aug 19, 2024
1 parent cad2985 commit c05ba7c
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

concurrency:
group: github-pages
cancel-in-progress: false
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:

runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write

strategy:
matrix:
Expand All @@ -33,11 +37,8 @@ jobs:
npm install -g gulp
yarn install
gulp build # to do: we should make this run by `npm test`
env:
CI: true
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: 'build'
Expand Down

0 comments on commit c05ba7c

Please sign in to comment.