Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iniznet committed Oct 29, 2022
1 parent b5ecded commit 5af790d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@ jobs:
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"

- name: "Put project directory"
run: bash scripts/put.sh
- name: "Cleaning project directory"
run: bash scripts/clean.sh

- name: Archive project release
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'authcred-${{ github.ref_name }}.zip'
exclusions: 'authcred/*.git* authcred/node_modules/* authcred/.github/*'

- name: Upload release artifact
uses: ncipollo/release-action@v1
Expand Down
8 changes: 8 additions & 0 deletions scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

shopt -s extglob nullglob

rm -rf scripts .github node_modules .gitignore

mkdir authcred
mv !(authcred|build.sh) authcred
9 changes: 0 additions & 9 deletions scripts/put.sh

This file was deleted.

0 comments on commit 5af790d

Please sign in to comment.