Skip to content

Commit

Permalink
feat: Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zarei-dev committed Jul 6, 2022
1 parent d0dedef commit 33cf6fc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Releases

on:
push:
tags:
- 'v*'
jobs:
install-dependency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: composer install --ansi --no-progress --no-interaction --prefer-dist --no-dev
- uses: montudor/action-zip@v1
with:
args: zip -qq -r vendor.zip vendor
- uses: actions/upload-artifact@v2
with:
name: vendor
path: ./vendor.zip
if-no-files-found: error
release:
needs: install-dependency
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v2
with:
name: vendor
- run: unzip -qq vendor.zip
- run: rm vendor.zip
- run: zip -qq -X -r release.zip ./ -x "*.git*" .gitignore composer.* LICENSE node_modules/\* Gruntfile.js package.json yarn.lock .sass-cache/\* assets/sass/\*
- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: "release.zip"
generateReleaseNotes: true
omitPrereleaseDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 33cf6fc

Please sign in to comment.