From 64a3e40a92a6980cbb8a5b01f279efd19f1b3e98 Mon Sep 17 00:00:00 2001 From: Chrisforsure <61108153+chrisisth@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:08:16 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..75261a6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,41 @@ +name: Create Release and Upload Assets + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install zip + run: sudo apt-get install zip + + - name: Zip .flo files + run: zip -r flo_files.zip **/*.flo + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./flo_files.zip + asset_name: flo_files.zip + asset_content_type: application/zip