http-server-status/.forgejo/workflows/release.yml

41 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-21 09:52:30 +00:00
run-name: ${{ github.actor }} is testing
2023-07-21 09:58:08 +00:00
on:
push:
tags:
- '*'
2023-07-21 09:52:30 +00:00
jobs:
Release:
runs-on: docker
#container:
# image: goreleaser/goreleaser
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
#- run: goreleaser release --skip-publish --snapshot --rm-dist --debug
- name: Setup Go environment
uses: https://github.com/actions/setup-go@v2.1.3
with:
go-version: 1.20
- name: Run GoReleaser
uses: https://github.com/goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
2023-07-21 10:02:31 +00:00
GORELEASER_FORCE_TOKEN: "gitea"
2023-07-21 10:31:36 +00:00
GITEA_TOKEN: "${{ secrets.GITEA }}"
2023-07-21 10:26:43 +00:00
- name: Copy deb to publish folder
run: mkdir publish; cp dist/*deb publish/stable.deb; cp dist/*deb publish/
2023-07-21 10:02:31 +00:00
- name: Upload to s3
2023-07-21 10:26:43 +00:00
uses: https://github.com/shallwefootball/s3-upload-action@master
2023-07-21 10:02:31 +00:00
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: 'kekscloud-releases'
2023-07-21 10:26:43 +00:00
source_dir: 'publish/'
2023-07-23 23:50:56 +00:00
destination_dir: 'kekscloud-releases/'
2023-07-21 10:26:43 +00:00
endpoint: 's3.eu-central-003.backblazeb2.com'