diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 60e6da2..b2e91d9 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -1,52 +1,27 @@ ---- -name: gitea-release-action -description: "An action to support publishing release to Gitea." -author: "Akkuman" -inputs: - server_url: - description: the base url of the gitea API - required: false - default: ${{ github.server_url }} - body: - description: "Note-worthy description of changes in release" - required: false - name: - description: "Gives the release a custom name. Defaults to tag name" - required: false - default: ${{ github.ref_name }} - tag_name: - description: "Gives a tag name. Defaults to github.GITHUB_REF" - required: false - default: ${{ github.ref_name }} - draft: - description: "Creates a draft release. Defaults to false" - required: false - prerelease: - description: "Identify the release as a prerelease. Defaults to false" - required: false - files: - description: "Newline-delimited list of path globs for asset files to upload" - required: false - repository: - description: "Repository to make releases against, in / format" - required: false - default: ${{ github.repository }} - token: - description: "Gitea Token" - required: false - default: ${{ github.token }} - target_commitish: - description: 'Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.' - required: false - md5sum: - description: 'Publish `.md5` along with artifacts.' - required: false - sha256sum: - description: 'Publish `.sha256` along with artifacts.' - required: false -runs: - using: "node16" - main: "dist/index.js" -branding: - color: "green" - icon: "package" \ No newline at end of file +name: release + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: setup go + uses: https://github.com/actions/setup-go@v4 + with: + go-version: '>=1.20.1' + - name: go build + run: go build -o bin/myapp + - name: Use Go Action + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + bin/** + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file