Skip to content

Commit

Permalink
Add build-release-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Feb 17, 2022
1 parent 52ce3cf commit 496550b
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/build-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,17 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

# Cache npm (javascript)
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm dependencies
uses: actions/cache@v2
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --no-dev

- name: Adjust directory permissions
run: chmod -R 777 storage bootstrap/cache
run: chmod -R 777 storage

# I'm not sure if this is strictly required, but it was part of the template for setup-php - m.
- name: Clear Config Cache
run: php please config:clear

- name: Install JavaScript Dependencies
run: npm install --omit dev

- name: Build JavaScript
run: npm run prod

- name: Create ZIP archive without tests or js deps
- name: Create ZIP archive without tests
run: |
zip -r munkireport-php.zip . -x node_modules/\* \*/node_modules/\* .git/\*
Expand All @@ -93,8 +72,6 @@ jobs:
- uses: ncipollo/release-action@v1
with:
artifacts: "munkireport-php.zip"
draft: true
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}

container-image:
Expand Down

0 comments on commit 496550b

Please sign in to comment.