update deploy worklflow
This commit is contained in:
@@ -1,16 +1,27 @@
|
|||||||
name: Build + Deploy
|
name: Build + Deploy
|
||||||
run-name: ${{ gitea.actor }} is deploying this page to production.
|
run-name: ${{ gitea.actor }} is deploying this page to production.
|
||||||
on: [push]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Checkout repository first."
|
- name: Repository auschecken
|
||||||
- name: Check out repository code
|
uses: actions/checkout@v3
|
||||||
uses: actions/checkout@v4
|
|
||||||
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
- name: Node.js einrichten
|
||||||
- name: List files in the repository
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 14
|
||||||
|
|
||||||
|
- name: Abhängigkeiten installieren
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
npm install
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
|
||||||
|
- name: Gatsby Build
|
||||||
|
run: |
|
||||||
|
npm run build
|
||||||
Reference in New Issue
Block a user