From 9a311b460d8b83691023f79abf8d333e6f9e548f Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Tue, 2 Jan 2024 19:16:36 +0100 Subject: [PATCH] test --- .github/workflows/t.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/t.yml diff --git a/.github/workflows/t.yml b/.github/workflows/t.yml new file mode 100644 index 00000000..d30f90e8 --- /dev/null +++ b/.github/workflows/t.yml @@ -0,0 +1,31 @@ + publish: + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Vars + id: setup-vars + uses: actions/github-script@v6 + with: + script: | + core.setOutput("owner", context.repo.owner) + core.setOutput("repo", context.repo.repo) + - name: Download Everything + uses: actions/download-artifact@v4 + with: + path: output + pattern: dmg-* + merge-multiple: true + run-id: 176 + - name: Download ghr + run: | + curl -L https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz --output ghr.tar.gz + tar -xf ghr.tar.gz + - name: Upload Nightly + run: | + ./ghr*/ghr -t ${{ secrets.GITHUB_TOKEN }} -u ${{ steps.setup-vars.outputs.owner }} -r ${{ steps.setup-vars.outputs.repo }} -b "$LAUNCHER_RELEASE_DESCRIPTION" -replace "nightly" output/ + env: + LAUNCHER_RELEASE_DESCRIPTION: | + This release appends assets every day, the one with the highest number is the latest one. + Please use releases from https://mcpelauncher.readthedocs.io/. + Builds from this tag are very very unstable, but new changes lands here earlier. \ No newline at end of file