-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.42 KB
/
publish.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Publish Release
on:
pull_request:
push:
tags:
- "v*"
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build - Install
run: ./build_install.sh
shell: bash
- name: Bundle Package
run: ./bundle.sh
shell: bash
- name: Build - Cleanup
run: ./build_cleanup.sh
shell: bash
- name: Final Cleanup
run: |
find . -name '.git*' -exec rm -rf {} + -depth
find . -type d -empty -delete
- name: DEBUG - Current Directory
run: |
pwd
ls -la
- name: DEBUG - Parent Directory
run: |
cd ..
pwd
ls -la
- name: DEBUG - GitHub Variables
run: |
echo "Ref Type: ${{ github.ref_type }}"
echo "Ref Name: ${{ github.ref_name }}"
echo "Action Path: ${{ github.action_path }}"
echo "Workspace: ${{ github.workspace }}"
echo "Repository: ${{ github.repository }}"
echo "Basename: $( basename "${{ github.repository }}" )"
echo "PTC_PLUGIN_ZIP_FILE: $PTC_PLUGIN_ZIP_FILE"
# - name: Publish WordPress Plugin Release
# uses: 10up/action-wordpress-plugin-deploy@stable
# with:
# dry-run: true
# generate-zip: false
# env:
# SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }}
# SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}