Skip to content

Commit

Permalink
Cleanup workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Oct 25, 2023
1 parent 1e9d536 commit 1a0d38d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Deploy to production
on:
release:
types: [published]
types: [ published ]
jobs:
deploy:
name: Deploy to production
runs-on: ubuntu-latest
steps:
- name: Show release name
run: echo "${{ github.event.release.name }}"
# - name: Set RELEASE_TAG env
# run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
# - name: Dispatch release
# uses: peter-evans/repository-dispatch@v1
# with:
# token: ${{ secrets.REPO_DISPATCH_TOKEN }}
# repository: ${{ secrets.REPO_DISPATCH_PATH }}
# event-type: coopcycle-release
# # client-payload: '{"tag": "${{ env.RELEASE_TAG }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
- name: Send repository dispatch event
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_DISPATCH_TOKEN }}
repository: coopcycle/coopcycle-ops
event-type: coopcycle-release
client-payload: '{"tag": "${{ github.event.release.name }}"}'

0 comments on commit 1a0d38d

Please sign in to comment.