diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a5a1fa..541efdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,10 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: Release gem - if: contains(github.ref, 'refs/tags/v') - uses: cadwallion/publish-rubygems-action@master - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} - RELEASE_COMMAND: rake release + run: | + mkdir -p ~/.gem + cat << EOF > ~/.gem/credentials + --- + :github: Bearer ${{ secrets.GITHUB_TOKEN }} + :rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }} + EOF + chmod 0600 ~/.gem/credentials + nix develop -c rake release