fix: reopen last tab after restart (drop about:blank startup arg) #10
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: release | |
| # Conventional-commit auto-versioning: a push to main computes the next semver | |
| # from commit messages (feat -> minor, fix -> patch, BREAKING -> major), creates | |
| # the vX.Y.Z tag + GitHub release, and publishes the image. Non-releasable commits | |
| # (chore/docs/ci/...) only refresh :edge + :sha. | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Compute next version (conventional commits) | |
| id: tag | |
| uses: mathieudutour/github-tag-action@v6.2 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| default_bump: false | |
| release_branches: main | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/dataplanelabs/scry | |
| tags: | | |
| type=raw,value=${{ steps.tag.outputs.new_version }},enable=${{ steps.tag.outputs.new_version != '' }} | |
| type=raw,value=latest,enable=${{ steps.tag.outputs.new_version != '' }} | |
| type=edge,branch=main | |
| type=sha | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Create GitHub release | |
| if: steps.tag.outputs.new_tag != '' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.new_tag }} | |
| name: ${{ steps.tag.outputs.new_tag }} | |
| body: ${{ steps.tag.outputs.changelog }} |