Update .gitea/workflows/build.yml
This commit is contained in:
parent
ec89430245
commit
ecaa8f22cd
@ -3,19 +3,29 @@ run-name: ${{ gitea.actor }} is building
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Dependencies_NPM:
|
||||||
runs-on: Docker
|
runs-on: Docker
|
||||||
container:
|
container:
|
||||||
image: alpine
|
image: node:16
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
- name: Checkout Repository
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
- name: Install Dependencies
|
||||||
- name: List files in the repository
|
run: npm i
|
||||||
run: |
|
|
||||||
ls ${{ gitea.workspace }}
|
- name: Upload Artifacts
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
if: success()
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: node_modules
|
||||||
|
path: node_modules
|
||||||
|
|
||||||
|
Build_Node:
|
||||||
|
runs-on: Docker
|
||||||
|
container:
|
||||||
|
image: node:16
|
||||||
|
steps:
|
||||||
|
- name: Build
|
||||||
|
- run: npm run build
|
Loading…
Reference in New Issue
Block a user