From 3d81cd8f54086ecbfabb1e6c9fbaa3a7f4de1b65 Mon Sep 17 00:00:00 2001 From: sech1p Date: Sat, 8 Jun 2024 05:18:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20[GitHub=20Workflows]=20Add=20releas?= =?UTF-8?q?e=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b62d735 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +on: + push: + tags: + - '*' + +env: + node: true + es6: true + +jobs: + release_job: + runs-on: ubuntu-latest + name: đŸ’Ÿ Releasing + steps: + - name: ✔ Checkout + uses: actions/checkout@v4 + + - name: đŸ’» Download node and release package + uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm install + - run: npm install --save-dev + - run: npm run build + - run: npm install -g pkg-fetch + - run: pkg-fetch dist/index.js + + - name: 🛠 Draft Release + id: draft_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ✹v${{ github.ref }} + draft: false + + - name: 🛠 Build Release (Linux) + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.draft_release.outputs.upload_url }} + asset_path: ../../../.pkg-cache/v3.5/fetched-v19.8.1-linux-x64 + asset_name: blahaj-linux-x64 + asset_content_type: application/x-elf \ No newline at end of file