Don't flag releases on github for now #17
This file contains 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: Compile and Upload | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
env: | |
ACTIONS_STEP_DEBUG: true | |
jobs: | |
ci-data: | |
name: Fetch CI data | |
runs-on: ubuntu-latest | |
outputs: | |
result: ${{ steps.fetch.outputs.result }} | |
steps: | |
- uses: oxidize-rb/actions/fetch-ci-data@v1 | |
id: fetch | |
with: | |
supported-ruby-platforms: true | |
stable-ruby-versions: | | |
exclude: [head] | |
cross-gem: | |
name: ${{ matrix.platform }} compilation | |
runs-on: ubuntu-latest | |
needs: ci-data | |
strategy: | |
matrix: | |
platform: ${{ fromJSON(needs.ci-data.outputs.result).supported-ruby-platforms }} | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout project | |
- uses: ruby/setup-ruby@v1 | |
name: Setup ruby | |
with: | |
ruby-version: "3.1" | |
- uses: oxidize-rb/actions/cross-gem@v1 | |
name: Compile ${{ matrix.platform }} | |
id: cross-gem | |
with: | |
platform: ${{ matrix.platform }} | |
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ',') }} | |
- name: Display structure of downloaded files | |
run: ls -R | |
working-directory: pkg | |
- uses: fac/ruby-gem-setup-credentials-action@v2 | |
name: Set up github creds for pushing | |
with: | |
user: "" | |
key: rubygems | |
token: ${{ secrets.RUBYGEMS_KEY }} | |
- uses: fac/ruby-gem-push-action@v2 | |
name: Push gem to Github Packages | |
with: | |
key: rubygems | |
tag: false | |
pre-release: true | |
- uses: actions/upload-artifact@v3 | |
name: upload push.out | |
with: | |
name: pushout | |
path: push.out |