From 0e18b8d988462fd1ac926ab413e29e4dc9052a7a Mon Sep 17 00:00:00 2001 From: Arid <118916772+AridDev@users.noreply.github.com> Date: Tue, 28 May 2024 08:46:57 +0600 Subject: [PATCH] add workflow_dispatch to gh actions --- .github/workflows/release.yml | 73 ++++++++++++------------ .github/workflows/wallypublish.yml | 33 +++++------ docs/guides/introduction/installation.md | 4 +- 3 files changed, 56 insertions(+), 54 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05424d8..fe5eae4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,44 +3,45 @@ name: Build standalone version on: push: tags: - - 'v*' + - "v*" + workflow_dispatch: permissions: contents: write jobs: - build: - name: New Release - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Aftman - uses: ok-nick/setup-aftman@v0.4.2 - - - name: Install Wally dependencies - run: | - wally install - - - name: Format code - run: | - stylua src/ - stylua tests/ - - - name: Build standalone - run: | - rojo build standalone.project.json --output ./Standalone.rbxm - - - name: Create release - id: create_release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ github.ref_name }} - name: ${{ github.ref_name }} - draft: true - generate_release_notes: true - files: | - ./Standalone.rbxm - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + build: + name: New Release + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Aftman + uses: ok-nick/setup-aftman@v0.4.2 + + - name: Install Wally dependencies + run: | + wally install + + - name: Format code + run: | + stylua src/ + stylua tests/ + + - name: Build standalone + run: | + rojo build standalone.project.json --output ./Standalone.rbxm + + - name: Create release + id: create_release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + generate_release_notes: true + files: | + ./Standalone.rbxm + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/wallypublish.yml b/.github/workflows/wallypublish.yml index 1c5126e..1e58979 100644 --- a/.github/workflows/wallypublish.yml +++ b/.github/workflows/wallypublish.yml @@ -1,27 +1,28 @@ name: Publish package to Wally on: + workflow_dispatch: release: types: [published] - + jobs: publish: name: Publish package to Wally runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Aftman - uses: ok-nick/setup-aftman@v0.4.2 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Aftman + uses: ok-nick/setup-aftman@v0.4.2 + + - name: Log In + env: + WALLY_AUTH: ${{ secrets.WALLY_AUTH_TOKEN }} + run: | + mkdir ~/.wally + printenv WALLY_AUTH > ~/.wally/auth.toml - - name: Log In - env: - WALLY_AUTH: ${{ secrets.WALLY_AUTH_TOKEN }} - run: | - mkdir ~/.wally - printenv WALLY_AUTH > ~/.wally/auth.toml - - - name: Publish - run: | - wally publish \ No newline at end of file + - name: Publish + run: | + wally publish diff --git a/docs/guides/introduction/installation.md b/docs/guides/introduction/installation.md index 1a5b6f3..c5e8d29 100644 --- a/docs/guides/introduction/installation.md +++ b/docs/guides/introduction/installation.md @@ -2,7 +2,7 @@ ### GitHub -1. Navigate to the latest release of CanaryEngine on Github, you can find that [here](https://github.com/lumin-rbx/Aegis/releases/) +1. Navigate to the latest release of Aegis on Github, you can find that [here](https://github.com/lumin-dev/Aegis/releases/) 2. Choose `Standalone.rbxm` and download 3. Drag the file from your downloads folder into `ReplicatedStorage`. @@ -10,4 +10,4 @@ 1. Create a new Git project or open one 2. Add `lumin/aegis@^0.0.1` to your `wally.toml` file -3. Run `wally install` and CanaryEngine should be inside of your `/Packages` directory. +3. Run `wally install` and Aegis should be inside of your `/Packages` directory.