feat: big renovation, upgrade to idiomatic go 1.21 and now create OCI… #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: [ main ] | |
tags: [ v* ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: earthly/actions-setup@v1 | |
with: | |
version: v0.7.23 | |
- name: Check Out Repo | |
uses: actions/checkout@v3 | |
- name: Lint | |
run: earthly +lint | |
- name: Build | |
run: | | |
earthly +generate | |
earthly +build | |
- name: Test | |
run: earthly +test | |
release: | |
needs: build-and-test | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: earthly/actions-setup@v1 | |
with: | |
version: v0.7.23 | |
- name: Build | |
run: | | |
earthly +generate | |
earthly +all | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
dist/* | |
checksums.txt | |
LICENSE | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |