Skip to content

Commit c48548b

Browse files
author
wokamoto
authored
Merge pull request #2 from tekapo/add-some-comments-to-workflow-1
add some additional comments and reivse some comments.
2 parents 8f6a66a + 03742c2 commit c48548b

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
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
210

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+
#
413
name: release
514

615
# see: https://help.github.com/en/articles/workflow-syntax-for-github-actions#on
716
on:
817
create:
918
tags: []
10-
# - v*.*.* # to use filters. wildcard characters supported.
19+
# - v*.*.* # to use filters. wildcard characters are supported.
1120

1221
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobs
1322
jobs:
@@ -25,7 +34,7 @@ jobs:
2534
- uses: actions/checkout@v1
2635

2736

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.
2938
- name: composer install
3039
run: composer install
3140

@@ -44,8 +53,8 @@ jobs:
4453
export TAGNAME=$(jq --raw-output .ref "$GITHUB_EVENT_PATH")
4554
sed -i -e "s/{release version}/${TAGNAME}/g" ${PACKAGE_NAME}.php
4655
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.
4958
- name: create archive
5059
env:
5160
PACKAGE_NAME: "shifter-github-hosting-plugin-sample"

0 commit comments

Comments
 (0)