diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3c5be20 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ + +name: Create release + +on: + push: + branches: + - master + tags: + - '*.*.*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Zip Folder + run: zip -r ${{ github.event.repository.name }}.zip . + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ${{ github.event.repository.name }}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}