Update CHANGELOG for v1.0.6 #19
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - uses: extractions/setup-just@v2 | |
| - name: Check (fmt + vet + test + QA smoke) | |
| run: just check | |
| - name: Build all binaries | |
| run: just build | |
| docker: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: extractions/setup-just@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push | |
| env: | |
| DOCKER_REPO: ${{ secrets.DOCKERHUB_USERNAME }}/taskflow | |
| run: | | |
| just docker-build-cached | |
| just docker-push latest | |
| just docker-push ${{ github.sha }} | |
| if [[ "${{ github.ref }}" == refs/tags/v* ]]; then | |
| just docker-push "${{ github.ref_name }}" | |
| fi | |
| release: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - uses: extractions/setup-just@v2 | |
| - name: Build release archives | |
| run: just dist | |
| - name: Generate release notes | |
| id: notes | |
| run: | | |
| # Find the previous tag. | |
| PREV=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || git rev-list --max-parents=0 HEAD) | |
| echo "## What's Changed" > release-notes.md | |
| echo "" >> release-notes.md | |
| git log --pretty=format:"- %s" "${PREV}..HEAD" --no-merges --grep="^Update CHANGELOG" --invert-grep >> release-notes.md | |
| echo "" >> release-notes.md | |
| echo "" >> release-notes.md | |
| echo "**Docker:** \`docker pull ${{ secrets.DOCKERHUB_USERNAME }}/taskflow:${{ github.ref_name }}\`" >> release-notes.md | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body_path: release-notes.md | |
| files: dist/*.tar.gz | |
| generate_release_notes: false |