Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c6929616ab | |||
| 236ad9c766 |
@@ -1,13 +1,7 @@
|
|||||||
# .gitea/workflows/build.yaml
|
# .gitea/workflows/build.yaml
|
||||||
name: Build Workflow
|
name: Gitea Actions Demo
|
||||||
on:
|
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
||||||
workflow_dispatch:
|
on: [workflow_dispatch, push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths-ignore:
|
|
||||||
- '.gitea/workflows/*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -36,12 +30,12 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Upload Artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: dist-files
|
|
||||||
path: dist/
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
echo Deploying...
|
echo Deploying...
|
||||||
|
sleep 1
|
||||||
|
echo ...
|
||||||
|
sleep 1
|
||||||
|
echo ...
|
||||||
|
sleep 1
|
||||||
echo DONE!
|
echo DONE!
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
name: Output Information
|
name: Output Information
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, edited, closed, reopened, synchronize]
|
types: [opened, edited]
|
||||||
issues:
|
|
||||||
types: [opened, edited, closed, reopened, deleted]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
info:
|
info:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Because
|
- name: Output GITEA Context
|
||||||
run: echo "${{gitea.event.action)}}"
|
|
||||||
- name: Output Event Details
|
|
||||||
run: echo "${{toJSON(gitea.event)}}"
|
run: echo "${{toJSON(gitea.event)}}"
|
||||||
|
- name: Output JOB Context
|
||||||
|
run: echo "${{toJSON(job)}}"
|
||||||
|
- name: Output JOBS Context
|
||||||
|
run: echo "${{toJSON(jobs)}}"
|
||||||
|
- name: Output STEPS Context
|
||||||
|
run: echo "${{toJSON(steps)}}"
|
||||||
|
- name: Output RUNNER Context
|
||||||
|
run: echo "${{toJSON(runner)}}"
|
||||||
Reference in New Issue
Block a user