Skip to content

Update deploy-to-wp-pronamic-directory.yml #5

Update deploy-to-wp-pronamic-directory.yml

Update deploy-to-wp-pronamic-directory.yml #5

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
type: string
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: Pronamic WordPress directory
url: https://wp.pronamic.directory/plugins/pronamic-pay-with-mollie-for-gravity-forms/
permissions:
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 {{ env.FILENAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: 'pronamic-downloads'
workload_identity_provider: 'projects/623467151959/locations/global/workloadIdentityPools/github/providers/my-repo'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Use gcloud CLI'
run: 'gcloud info'
- name: 'Upload'
run: 'gcloud storage cp {{ env.FILENAME }} gs://wp.pronamic.download/plugins/${{ inputs.slug }}/{{ env.FILENAME }}

Check failure on line 49 in .github/workflows/deploy-to-wp-pronamic-directory.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-to-wp-pronamic-directory.yml

Invalid workflow file

You have an error in your yaml syntax on line 49