-
Notifications
You must be signed in to change notification settings - Fork 39
36 lines (34 loc) · 980 Bytes
/
release.yml
File metadata and controls
36 lines (34 loc) · 980 Bytes
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
35
36
# On release tag, will deploy new release to svn
name: Release to Wordpress.org
on:
release:
types: [published]
permissions:
contents: write
jobs:
deploy_to_wp_repository:
if: github.repository == 'tinify/wordpress-plugin'
name: Deploy to WP.org
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify version matches release tag
run: bin/check-version
- name: WordPress Plugin Deploy
id: deploy
uses: tinify/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SLUG: tiny-compress-images
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
- name: Upload release asset
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ github.workspace }}/tiny-compress-images.zip