|
1 | | -# Workflow Document: https://help.github.com/en/articles/workflow-syntax-for-github-actions |
| 1 | +# This is a sample workflows file for GitHub Actions. |
| 2 | +# |
| 3 | +# This workflow detects a tag, creates a package with the tag, then automatically uploads the package to GitHub releases. |
| 4 | +# |
| 5 | +# At first, please change PACKAGE_NAME to your package name. |
| 6 | +# Also, if you need: |
| 7 | +# - change FILES_TO_ARCIVE |
| 8 | +# - comment out the composer install section |
| 9 | +# - uncomment npm install section |
2 | 10 |
|
3 | | -# This workflow detects a tag push to Github, it will automatically upload the package to github releases. |
| 11 | +# Workflow Document: https://help.github.com/en/articles/workflow-syntax-for-github-actions |
| 12 | +# |
4 | 13 | name: release |
5 | 14 |
|
6 | 15 | # see: https://help.github.com/en/articles/workflow-syntax-for-github-actions#on |
7 | 16 | on: |
8 | 17 | create: |
9 | 18 | tags: [] |
10 | | - # - v*.*.* # to use filters. wildcard characters supported. |
| 19 | + # - v*.*.* # to use filters. wildcard characters are supported. |
11 | 20 |
|
12 | 21 | # https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobs |
13 | 22 | jobs: |
|
25 | 34 | - uses: actions/checkout@v1 |
26 | 35 |
|
27 | 36 |
|
28 | | - # install modules by composer. remove this step it if no needed. |
| 37 | + # install modules by composer. remove this step it if you don't need. |
29 | 38 | - name: composer install |
30 | 39 | run: composer install |
31 | 40 |
|
|
44 | 53 | export TAGNAME=$(jq --raw-output .ref "$GITHUB_EVENT_PATH") |
45 | 54 | sed -i -e "s/{release version}/${TAGNAME}/g" ${PACKAGE_NAME}.php |
46 | 55 |
|
47 | | - # create zip acrive for install to WordPress. |
48 | | - # please edit FILES_TO_ARCIVE to suit your project. |
| 56 | + # create a zip acrive for installing to WordPress. |
| 57 | + # please change FILES_TO_ARCIVE to your project name. |
49 | 58 | - name: create archive |
50 | 59 | env: |
51 | 60 | PACKAGE_NAME: "shifter-github-hosting-plugin-sample" |
|
0 commit comments