Sha256: 14eb39b766b1a4a09ac3019bdd30aa130a4f9d61e9d7d31b1435a6125d338cb3

Contents?: true

Size: 1.79 KB

Versions: 4

Compression:

Stored size: 1.79 KB

Contents

name: Create release

on:
  push:
    tags:
      - v*

permissions:
  contents: write

jobs:
  release:
    name: Release pushed tag
    runs-on: ubuntu-22.04
    environment:
      name: pypi
      url: https://pypi.org/p/inkcpp-py
    permissions:
      id-token: write
      contents: write 
    steps:
      - uses: actions/checkout@v4
      - name: Download artifacts
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          mkdir artifacts
          ID=$(gh run list -b master --limit 1 --json databaseId | jq '.[0].databaseId')
          gh run download $ID -D artifacts -n linux-cl -n linux-lib -n linux-clib -n unreal -n macos-cl -n macos-lib -n macos-clib -n macos-arm-cl -n macos-arm-lib -n macos-arm-clib -n win64-cl -n win64-lib -n win64-clib -n python-package-distribution
          mv artifacts/python-package-distribution dist
      - name: Zip
        working-directory: ${{github.workspace}}/artifacts
        run: |
          for f in linux-cl linux-lib linux-clib unreal macos-cl macos-lib macos-clib macos-arm-cl macos-arm-lib macos-arm-clib win64-cl win64-lib win64-clib; do zip -r ../$f.zip $f; done
      - name: List
        run: tree
      - name: Publish to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1.8
      - name: Create release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          tag: ${{ github.ref_name }}
        run: |
          gh release create \
              --repo="$GITHUB_REPOSITORY" \
              --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
              --generate-notes \
              "$tag" "linux-cl.zip" "linux-lib.zip" "linux-clib.zip" "unreal.zip" "macos-cl.zip" "macos-lib.zip" "macos-clib.zip" "win64-cl.zip" "macos-arm-cl.zip" "macos-arm-lib.zip" "macos-arm-clib.zip" "win64-lib.zip" "win64-clib.zip"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inkcpp_rb-0.1.3 ext/inkcpp_rb/inkcpp/.github/workflows/release.yml
inkcpp_rb-0.1.2 ext/inkcpp_rb/inkcpp/.github/workflows/release.yml
inkcpp_rb-0.1.1 ext/inkcpp_rb/inkcpp/.github/workflows/release.yml
inkcpp_rb-0.1.0 ext/inkcpp_rb/inkcpp/.github/workflows/release.yml