Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FTBSchnitzel authored Jan 8, 2024
1 parent 25a09c0 commit 60a77ee
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit 60a77ee

Please sign in to comment.