Skip to content

Commit

Permalink
Update deploy-to-wp-pronamic-directory.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Sep 30, 2024
1 parent c54a084 commit a59580e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy-to-wp-pronamic-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Deploy to Pronamic WordPress directory
on:
workflow_dispatch:
inputs:
slug:
default: 'pronamic-pay-with-mollie-for-gravity-forms'
type: string
version:
description: 'Version to deploy to Pronamic WordPress directory'
required: true
Expand All @@ -20,10 +23,13 @@ jobs:
contents: 'read'
id-token: 'write'

env:
FILENAME: ${{ inputs.slug }}.${{ inputs.version }}.zip

steps:
- name: 'Download'
run: |
gh release download v${{ inputs.version }} --repo ${{ github.repository }} --pattern pronamic-pay-with-mollie-for-gravity-forms.${{ inputs.version }}.zip
gh release download v${{ inputs.version }} --repo ${{ github.repository }} --pattern {{ env.FILENAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -38,3 +44,6 @@ jobs:

- name: 'Use gcloud CLI'
run: 'gcloud info'

- name: 'Upload'
run: 'gcloud storage cp {{ env.FILENAME }} gs://wp.pronamic.download/plugins/${{ inputs.slug }}/{{ env.FILENAME }}

0 comments on commit a59580e

Please sign in to comment.