29 lines
954 B
YAML
29 lines
954 B
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
jobs:
|
|
Dump Gitea Context:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- name: yank release
|
|
run: >
|
|
curl -X DELETE -H "Content-Type: application/json"
|
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}"
|
|
"https://git.beisel.it/api/v1/repos/florian/test/releases/tags/nightly"
|
|
- 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"
|
|
|
|
- step: test
|
|
uses: akkuman/gitea-release-action@v1
|
|
env:
|
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
|
with:
|
|
files: |-
|
|
test/**
|
|
tag_name: nightly
|