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