Files
test-repo/.gitea/workflows/ci.yaml
Aaron Guise 53df600302
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Gitea Actions Demo / release (push) Failing after 6s
fix: Correct naming
2024-04-22 16:45:55 +12:00

61 lines
2.0 KiB
YAML

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)/providers-gitea/1.0.1/ && \
wget https://github.com/cybercinch/go-semantic-release-provider-gitea/releases/download/v1.0.1/go-semantic-release-provider-gitea_v1.0.1_linux_amd64 \
-O .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/1.0.1/gitea && \
chmod a+x .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/1.0.1/gitea
- uses: go-semantic-release/action@v1
with:
# hooks: goreleaser
custom-arguments: --provider=gitea
env:
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
GITEA_HOST: ${{ secrets.G_SERVER_URL}}