diff options
| author | Dax <[email protected]> | 2025-04-22 21:16:14 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-22 21:16:14 -0400 |
| commit | 289f6af3de79c3eeeb8ff73e8aaffabe05989bb9 (patch) | |
| tree | e9e99fe9c6ad63047e01227c7b8ac1eff4a8bc05 /.github | |
| parent | cded7ee9fdfa5bd0dd9cafbb07a450e5883a772e (diff) | |
| download | opencode-289f6af3de79c3eeeb8ff73e8aaffabe05989bb9.tar.gz opencode-289f6af3de79c3eeeb8ff73e8aaffabe05989bb9.zip | |
CI (#43)
* sync
* ci test
* ci test
* tag
* sync
* sync
* ci
* sync
* enable cgo
* sync
* add back brew
* switch to main
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 34 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 37 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..ba9cb6067 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: build + +on: + workflow_dispatch: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +permissions: + contents: write + packages: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - run: git fetch --force --tags + + - uses: actions/setup-go@v5 + with: + go-version: ">=1.23.2" + + - run: go mod download + - uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: latest + args: build --snapshot --clean diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..08970bd88 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: release + +on: + workflow_dispatch: + push: + tags: + - "*" + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +permissions: + contents: write + packages: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - run: git fetch --force --tags + + - uses: actions/setup-go@v5 + with: + go-version: ">=1.23.2" + + - run: go mod download + - uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }} + AUR_KEY: ${{ secrets.AUR_KEY }} |
