Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 800ebc414c | |||
| a826a6b742 | |||
| 1636c042c3 |
@@ -1,13 +1,7 @@
|
||||
# .gitea/workflows/build.yaml
|
||||
name: Build Workflow
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.gitea/workflows/*'
|
||||
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
||||
on: [workflow_dispatch, push]
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -36,12 +30,12 @@ jobs:
|
||||
run: npm ci
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: dist-files
|
||||
path: dist/
|
||||
- name: Deploy
|
||||
run: |
|
||||
echo Deploying...
|
||||
sleep 1
|
||||
echo ...
|
||||
sleep 1
|
||||
echo ...
|
||||
sleep 1
|
||||
echo DONE!
|
||||
@@ -1,15 +1,19 @@
|
||||
name: Output Information
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, closed, reopened, synchronize]
|
||||
issues:
|
||||
types: [opened, edited, closed, reopened, deleted]
|
||||
types: [opened, edited, closed, reopened]
|
||||
|
||||
jobs:
|
||||
info:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Because
|
||||
run: echo "${{gitea.event.action)}}"
|
||||
- name: Output Event Details
|
||||
- name: Output GITEA Context
|
||||
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