Skip to content

Merge pull request #106 from ssotops/feat/gitea-compatibility #100

Merge pull request #106 from ssotops/feat/gitea-compatibility

Merge pull request #106 from ssotops/feat/gitea-compatibility #100

Workflow file for this run

name: Dagger Release Workflow
on:
push:
branches:
- main
- master
jobs:
dagger-release:
runs-on: ubuntu-latest
permissions:
contents: write # This gives the workflow permission to create releases
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.1'
- name: Remove local replacements and update dependencies
run: |
go mod edit -dropreplace github.com/ssotops/gitspace-plugin-sdk
go get github.com/ssotops/gitspace-plugin-sdk@latest
go mod tidy
- name: Build gitspace
run: |
go build -o gitspace
sudo mv gitspace /usr/local/bin
- name: Set up GITHUB_TOKEN
run: echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
- name: Run Dagger workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd .github/scripts
go mod init dagger-release
go mod edit -replace github.com/ssotops/gitspace=../..
go get dagger.io/dagger@latest
go get github.com/Masterminds/semver/v3@latest
go get github.com/google/go-github/v39@latest
go get golang.org/x/oauth2@latest
go mod tidy
go run dagger-release.go