Document comparison method in readme. #38
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 | |
| on: | |
| push: | |
| branches: ["master"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Determine version | |
| id: version | |
| uses: silphid/actions/get-version@master | |
| - name: Setup go environment | |
| uses: actions/setup-go@v3.3.1 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Tag commit | |
| uses: silphid/actions/tag-commit@v1 | |
| with: | |
| tag: ${{ steps.version.outputs.git-tag }} | |
| - name: Release | |
| uses: goreleaser/goreleaser-action@v4 | |
| with: | |
| version: ~> v1 | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| - name: Check out silphid/actions | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: silphid/actions | |
| path: silphid-actions | |
| token: ${{ secrets.GH_TOKEN }} | |
| fetch-depth: 0 | |
| - name: Promote in silphid/actions/test-chart | |
| uses: silphid/actions/replace-in-repo@master | |
| with: | |
| work-dir: silphid-actions | |
| glob: "test-chart/action.yaml" | |
| search: |- | |
| (github.com/silphid/testchart/releases/download/v)(\d+\.\d+\.\d+)(.+)(\d+\.\d+\.\d+) | |
| replace: |- | |
| $1${{ steps.version.outputs.version }}$3${{ steps.version.outputs.version }} | |
| message: "Promote test-chart action to use testchart v${{ steps.version.outputs.version }}" |