From 74d1ffb2b26eea862db484c23367d350c9d69604 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange <58280776+MeowcaTheoRange@users.noreply.github.com> Date: Sun, 8 May 2022 08:17:45 -0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0bd3da5..620899b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,16 +27,22 @@ jobs: # Runs a set of commands using the runners shell - name: Install Dependencies - run: | - cd / - ls - sudo npm install -g nativefier + run: sudo npm install -g nativefier - name: Stage For Linux - run: nativefier https://meowcatheorange.github.io/Mid-Simulator/ --platform linux --arch x64 --portable --disable-context-menu --height 400 --width 700 --single-instance --zoom 1.0 --lang "en-US" --min-width 700 --min-height 400 --max-width 1400 --max-height 800 + run: | + cd ${GITHUB_WORKSPACE} + mkdir build + cd build + nativefier https://meowcatheorange.github.io/Mid-Simulator/ --platform linux --arch x64 --portable --disable-context-menu --height 400 --width 700 --single-instance --zoom 1.0 --lang "en-US" --min-width 700 --min-height 400 --max-width 1400 --max-height 800 - uses: ncipollo/release-action@v1 with: - artifacts: "release.tar.gz,foo/*.txt" - bodyFile: "body.md" + artifacts: "${GITHUB_WORKSPACE}/build/*" + bodyFile: "README.md" token: ${{ secrets.GITHUB_TOKEN }} + + - name: Cleanup + run: | + cd .. + rm -rf build