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