name: CI

on:
  push:
    tags:
      - "*"
    paths:
      - Package Managers.alfredworkflow

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: Rename Alfred Workflow
        run: mv "Package Managers.alfredworkflow" Package.Managers.alfredworkflow

      - name: Create GitHub Release
        uses: elgohr/Github-Release-Action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: ${{ github.ref }}

      - name: GitHub Upload Release Artifacts
        uses: Roang-zero1/github-upload-release-artifacts-action@v2.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: Package.Managers.alfredworkflow

name: CI

on:
  push:
    tags:
      - "*"
    paths:
      - Package Managers.alfredworkflow

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: Rename Alfred Workflow
        run: mv "Package Managers.alfredworkflow" Package.Managers.alfredworkflow

      - name: Create GitHub Release
        uses: elgohr/Github-Release-Action@master
        env:
          GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
        with:
          args: ${{ github.ref }}

      - name: GitHub Upload Release Artifacts
        uses: Roang-zero1/github-upload-release-artifacts-action@v2.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: Package.Managers.alfredworkflow

Use a separate GH token for releases
Use a separate GH token for releases

Per the docs for elgohr/Github-Release-Action, the auto-provided
$GITHUB_TOKEN does not have privileges to create Releases.

@willfarrell, this will likely require you to add $RELEASE_TOKEN as a
Secret for this repository. Happy to help with that if you’d like to
make me an admin.
