feat: add configurable --default-key for non-JSON secrets #4
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| name: Build and Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 | |
| with: | |
| go-version: '1.25' | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6 | |
| with: | |
| distribution: goreleaser | |
| version: latest | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| verify: | |
| name: Verify Release | |
| needs: release | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| asset: openbao-secrets-importer_linux_amd64.tar.gz | |
| binary: openbao-secrets-importer | |
| - os: macos-latest | |
| asset: openbao-secrets-importer_darwin_amd64.tar.gz | |
| binary: openbao-secrets-importer | |
| - os: windows-latest | |
| asset: openbao-secrets-importer_windows_amd64.zip | |
| binary: openbao-secrets-importer.exe | |
| steps: | |
| - name: Get release tag | |
| id: tag | |
| shell: bash | |
| run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - name: Wait for release assets to be available | |
| shell: bash | |
| run: sleep 30 | |
| - name: Download release asset | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh release download "${{ steps.tag.outputs.tag }}" \ | |
| --repo "${{ github.repository }}" \ | |
| --pattern "${{ matrix.asset }}" | |
| - name: Extract (tar.gz) | |
| if: matrix.os != 'windows-latest' | |
| run: tar -xzf "${{ matrix.asset }}" | |
| - name: Extract (zip) | |
| if: matrix.os == 'windows-latest' | |
| run: unzip "${{ matrix.asset }}" | |
| - name: Verify help text | |
| shell: bash | |
| run: | | |
| chmod +x ./${{ matrix.binary }} 2>/dev/null || true | |
| ./${{ matrix.binary }} --help | |
| ./${{ matrix.binary }} version | |
| - name: Verify subcommands | |
| shell: bash | |
| run: | | |
| ./${{ matrix.binary }} list --help | |
| ./${{ matrix.binary }} export --help | |
| ./${{ matrix.binary }} import --help | |
| ./${{ matrix.binary }} validate --help | |
| ./${{ matrix.binary }} sources |