init before selecting workspace #6
This file contains hidden or 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: Main | |
on: | |
push: | |
branches: main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
uses: ./.github/actions/asdf_install | |
- name: Test | |
run: ./go library:check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
uses: ./.github/actions/asdf_install | |
- name: Test | |
run: ./go library:test:all | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
uses: ./.github/actions/asdf_install | |
- name: Test | |
run: ./go library:build | |
prerelease: | |
runs-on: ubuntu-latest | |
needs: [check, test, build] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
uses: ./.github/actions/asdf_install | |
- name: Authenticate with PyPi | |
run: ./go poetry:login_to_pypi[${{ secrets.PYPI_API_KEY }}] | |
- name: Publish | |
run: ./go library:publish:prerelease | |
- name: Configure git Author | |
run: ./go repository:set_ci_author | |
- name: Commit Release | |
run: ./go repository:commit_release | |
- name: Push Release Commit | |
run: ./go repository:push | |
release: | |
runs-on: ubuntu-latest | |
needs: [ prerelease ] | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: 'main' | |
- name: Install tools | |
uses: ./.github/actions/asdf_install | |
- name: Authenticate with PyPi | |
run: ./go poetry:login_to_pypi[${{ secrets.PYPI_API_KEY }}] | |
- name: Publish | |
run: ./go library:publish:release | |
- name: Configure git Author | |
run: ./go repository:set_ci_author | |
- name: Commit Release | |
run: ./go repository:commit_release | |
- name: Push Release Commit | |
run: ./go repository:push |