Skip to content

Commit

Permalink
updating test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 19, 2022
1 parent 9a96eed commit d364063
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Package Release
name: Release Packager
on:
workflow_dispatch:
inputs:
Expand All @@ -8,7 +8,7 @@ on:
default: ''
jobs:
tag:
name: New release
name: Generate new release package
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.inputs.version }}
Expand All @@ -17,13 +17,15 @@ jobs:
uses: actions/checkout@v2
with:
ref: master
- uses: actions/checkout@v2
- run: |
#- uses: actions/checkout@v2
- name: Create release branch
run: |
git config user.name github-actions
git config user.email [email protected]
git -C ./ checkout -b release-${{ env.VERSION }}
echo changing version string in owa_env.php
sed -i "s/master/${{ env.VERSION }}/g" owa_env.php
echo changing version string in package.json
sed -i 's/"version": "1.0.0",/"version": "${{ env.VERSION }}",/g' package.json
cat ./owa_env.php
cat ./package.json
Expand All @@ -47,16 +49,16 @@ jobs:
- name: tarball generation
run: |
tar --directory ./ --exclude='./composer.json' --exclude='./composer.lock' --exclude='./package.lock' --exclude='./package.json' --exclude='./webpack.conf.js' --exclude='./modules/base/src' --exclude='./node_modules' --exclude='./.gitignore' --exclude='./.github' --exclude='./.git' --exclude='./owa_${{ env.VERSION}}_packaged.tar' -pcvf ./owa_${{ env.VERSION}}_packaged.tar ./
tar --directory ./ --exclude='./composer.json' --exclude='./composer.lock' --exclude='./package-lock.json' --exclude='./package.json' --exclude='./webpack.config.js' --exclude='./modules/base/src' --exclude='./node_modules' --exclude='./.gitignore' --exclude='./.github' --exclude='./.git' --exclude='./owa_${{ env.VERSION}}_packaged.tar' -pcvf ./owa_${{ env.VERSION}}_packaged.tar ./
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
commitish: release-${{ env.VERSION }}
tag_name: ${{ env.VERSION }}-test
release_name: Release ${{ env.VERSION }}-test
tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
body: |
Changes in this Release
- First Change
Expand Down

0 comments on commit d364063

Please sign in to comment.