autostart-manage/.forgejo/workflows/release.yaml

33 lines
789 B
YAML
Raw Normal View History

2024-01-12 01:05:28 +00:00
on:
push:
tags:
- v**
jobs:
2024-10-28 18:53:42 +00:00
release:
2024-01-12 01:05:28 +00:00
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- id: install-dependencies
run: |
apt update
2024-10-28 18:53:42 +00:00
# TODO add pandoc for docs
2024-01-12 01:05:28 +00:00
apt install -y make ruby
gem install bashly
shell: bash
- id: run-bashly
run: |
make generate
2024-10-28 18:53:42 +00:00
#make docs
2024-01-12 01:05:28 +00:00
shell: bash
2024-10-28 18:53:42 +00:00
- id: prepare-release
2024-01-12 01:05:28 +00:00
run: |
2024-10-28 18:53:42 +00:00
mkdir /tmp/release
cp ./autostart-manage /tmp/release
#cp -r ./man1 /tmp/release
2024-01-12 01:05:28 +00:00
shell: bash
- uses: https://code.forgejo.org/actions/forgejo-release@v1
with:
direction: upload
2024-10-28 18:53:42 +00:00
release-dir: /tmp/release
2024-01-12 01:05:28 +00:00
token: ${{ github.token }}