fix: Oops, need a tidyup
This commit is contained in:
@@ -1,62 +0,0 @@
|
|||||||
name: Gitea Actions Demo
|
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Explore-Gitea-Actions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- run: echo "Environment vars are `env`"
|
|
||||||
# lint:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
# - uses: actions/setup-go@v5
|
|
||||||
# with:
|
|
||||||
# go-version: '1.22'
|
|
||||||
# - uses: golangci/golangci-lint-action@v3
|
|
||||||
# build:
|
|
||||||
# runs-on: ${{ matrix.os }}
|
|
||||||
# needs: lint
|
|
||||||
# strategy:
|
|
||||||
# fail-fast: true
|
|
||||||
# matrix:
|
|
||||||
# os: [macos-latest, windows-latest, ubuntu-latest]
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
# - uses: actions/setup-go@v5
|
|
||||||
# with:
|
|
||||||
# go-version: '1.22'
|
|
||||||
# - run: go build ./cmd/provider-gitea/
|
|
||||||
# # - run: go test -v ./...
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.22'
|
|
||||||
- run: |
|
|
||||||
mkdir -p .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/ && \
|
|
||||||
wget https://github.com/cybercinch/go-semantic-release-provider-gitea/releases/download/v${GITEA_PROVIDER_VER}/go-semantic-release-provider-gitea_v${GITEA_PROVIDER_VER}_linux_amd64 \
|
|
||||||
-O .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/gitea && \
|
|
||||||
chmod a+x .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/gitea
|
|
||||||
env:
|
|
||||||
GITEA_PROVIDER_VER: 1.0.4
|
|
||||||
- uses: go-semantic-release/action@v1
|
|
||||||
with:
|
|
||||||
# hooks: goreleaser
|
|
||||||
custom-arguments: --provider=gitea --no-ci=true
|
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
|
|
||||||
GITEA_HOST: ${{ secrets.G_SERVER_URL}}
|
|
||||||
Reference in New Issue
Block a user