actions-playground/.gitea/workflows/ci.yaml

31 lines
708 B
YAML
Raw Normal View History

2023-03-24 09:18:51 +00:00
name: CI
on:
2023-03-24 09:28:29 +00:00
- push
2023-03-24 09:18:51 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-03-25 14:50:58 +00:00
- uses: "https://github.com/actions/checkout@v3"
- name: Hash the files
uses: theowenyoung/folder-hash@v3
id: hash-stuff
with:
2023-04-10 14:09:10 +01:00
path: .gitea/workflows/
2023-03-24 22:12:29 +00:00
- name: Cache stuff
2023-03-25 14:50:58 +00:00
uses: "https://github.com/actions/cache@v3"
2023-03-24 22:12:29 +00:00
with:
path: .
key: stuff-${{ steps.hash-stuff.outputs.hash }}
2023-03-24 21:12:40 +00:00
- run: sleep 5
2023-03-24 14:31:10 +00:00
- name: Hello world
run: docker run hello-world
2023-03-24 14:33:32 +00:00
- run: docker ps
- run: docker container ls
2023-04-17 14:25:55 +01:00
- run: env
2023-05-20 11:49:38 +01:00
- uses: actions/upload-artifact@v3
with:
name: readme
path: README.md
2023-03-24 22:12:29 +00:00