diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e07c24b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [main] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # zipping + zip-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: montudor/action-zip@v0.1.1 + - name: Zip Folder + run: zip -r flyingfox.zip chrome other_configs treestyletab + - name: Tar Folder + run: tar -czf flyingfox.tar.gz chrome other_configs treestyletab + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ridedott/release-me-action@master + with: + disable-changelog: true + release-branches: '["master"]' + release-assets: | + flyingfox.zip + flyingfox.tar.gz diff --git a/.github/workflows/release.yml.bk b/.github/workflows/release.yml.bk deleted file mode 100644 index b908635..0000000 --- a/.github/workflows/release.yml.bk +++ /dev/null @@ -1,31 +0,0 @@ -on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [master] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # zipping - zip: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: montudor/action-zip@v0.1.1 - - name: Zip Folder - run: zip -r release.zip zip -r flyingfox-0.1.${{github.run_number}}.zip chrome treestyletab other_configs - - release: - # release zipped file - runs-on: ubuntu-latest - steps: - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "v0.1.${{github.run_number}}" - prerelease: false - draft: true - files: | - flyingfox-0.1.${{github.run_number}}.zip