1
0
mirror of https://github.com/thib8956/tic-tac-toe-ws.git synced 2024-09-29 06:06:37 +00:00

update git workflow

This commit is contained in:
Thibaud Gasser 2024-09-25 20:30:12 +02:00 committed by GitHub
parent cc1fd59b79
commit 4c7673475d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,8 +6,7 @@ on:
permissions: permissions:
contents: write contents: write
jobs: jobs:
build-and-deploy: build:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout 🛎️
@ -17,7 +16,27 @@ jobs:
run: | run: |
npm ci npm ci
npx tsc npx tsc
- name: Deploy 🚀 - name: Upload GitHub Pages artifact
uses: JamesIves/github-pages-deploy-action@v4 uses: actions/upload-pages-artifact@v1
with:
folder: . # Deploy job
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
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4