-
-
Notifications
You must be signed in to change notification settings - Fork 42
34 lines (34 loc) · 982 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
attestations: write
timeout-minutes: 70
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Composer dependencies
run: composer install --no-dev --no-interaction --optimize-autoloader
- name: Composer build
run: composer run-script build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
id: deploy
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: multisite-language-switcher
with:
generate-zip: true
- name: Attest build provenance
uses: johnbillion/action-wordpress-plugin-attestation@0.5.0
with:
zip-path: ${{ steps.deploy.outputs.zip-path }}