From 60a77eef13ae1e95d856ca4cbb613dad8c324c4c Mon Sep 17 00:00:00 2001 From: Schnitzelflo44 <68322498+Schnitzelflo44@users.noreply.github.com> Date: Mon, 8 Jan 2024 09:38:50 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..36345a03 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,59 @@ +name: Build and Package + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + name: Build Bootstrap + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Theos + run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/roothide/theos/master/bin/install-theos)" + + - name: Setup Environment + run: echo "THEOS=~/theos" >> $GITHUB_ENV + + - name: Make Bootstrap Package + run: make package + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: Bootstrap.tipa + path: ./packages/Bootstrap.tipa + update-release: + name: Release .tipa + runs-on: ubuntu-latest + needs: build + + steps: + - name: Delete old release + uses: dev-drprasad/delete-tag-and-release@v0.2.1 + with: + delete_release: true + tag_name: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Get artifacts + uses: actions/download-artifact@v3 + with: + name: Bootstrap.tipa + - name: Create new release + uses: ncipollo/release-action@v1 + with: + name: Rolling Release + body: These are automatically updated builds of the latest commit. + artifacts: "Bootstrap.tipa" + tag: release + token: ${{ secrets.GITHUB_TOKEN }}