2024-02-15 11:17:28 +01:00
|
|
|
name: Gitea Actions Demo
|
|
|
|
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on: [push]
|
2024-02-15 11:13:13 +01:00
|
|
|
jobs:
|
|
|
|
Dump Gitea Context:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-02-15 11:24:14 +01:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2024-02-15 11:44:39 +01:00
|
|
|
- name: yank release
|
|
|
|
run: >
|
2024-02-15 11:49:23 +01:00
|
|
|
curl -X DELETE -H "Content-Type: application/json"
|
2024-02-15 11:44:39 +01:00
|
|
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}"
|
2024-02-15 11:53:37 +01:00
|
|
|
"https://git.beisel.it/api/v1/repos/florian/test/releases/tags/nightly"
|
2024-02-15 12:05:46 +01:00
|
|
|
- name: yank tag
|
|
|
|
run: >
|
|
|
|
curl -X DELETE -H "Content-Type: application/json"
|
|
|
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}"
|
|
|
|
"https://git.beisel.it/api/v1/repos/florian/test/tags/nightly"
|
|
|
|
|
2024-02-15 11:14:47 +01:00
|
|
|
- step: test
|
|
|
|
uses: akkuman/gitea-release-action@v1
|
|
|
|
env:
|
2024-02-15 11:13:13 +01:00
|
|
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
2024-02-15 11:14:47 +01:00
|
|
|
with:
|
|
|
|
files: |-
|
2024-02-15 11:21:58 +01:00
|
|
|
test/**
|
2024-02-15 11:44:39 +01:00
|
|
|
tag_name: nightly
|