Publish Action
This commit is contained in:
parent
e7b8dc721a
commit
96f282d53a
|
@ -7,27 +7,26 @@ on:
|
|||
jobs:
|
||||
publish:
|
||||
timeout-minutes: 10
|
||||
runs-on: debian-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
name: Checkout
|
||||
- name: Build
|
||||
run: |
|
||||
npm --version && node --version
|
||||
npm ci --no-update-notifier
|
||||
npm run build
|
||||
- uses: https://github.com/nwtgck/actions-netlify@v2.0
|
||||
name: Deploy
|
||||
pnpm --version && node --version
|
||||
pnpm ci
|
||||
pnpm run build
|
||||
- name: Deploy to Netlify
|
||||
uses: nwtgck/actions-netlify@v3.0
|
||||
with:
|
||||
publish-dir: './dist'
|
||||
production-deploy: true
|
||||
production-branch: master
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
deploy-message: "Deployed from Gitea Action"
|
||||
enable-commit-comment: false
|
||||
deploy-message: "Deploy from GitHub Actions"
|
||||
enable-pull-request-comment: false
|
||||
enable-commit-comment: true
|
||||
overwrites-pull-request-comment: true
|
||||
enable-github-deployment: false
|
||||
env:
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
timeout-minutes: 1
|
||||
|
|
Loading…
Reference in New Issue