test4
This commit is contained in:
31
.gitea/workflows/test-json.yaml
Normal file
31
.gitea/workflows/test-json.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate-json:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Generate JSON
|
||||||
|
run: echo '{"hola": "test"}' > data.json
|
||||||
|
|
||||||
|
- name: Display contents of directory
|
||||||
|
run: ls
|
||||||
|
|
||||||
|
- name: Upload JSON as artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: generated-json
|
||||||
|
path: data.json
|
||||||
|
|
||||||
Reference in New Issue
Block a user