diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9d77873..e7b77db4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,3 +43,24 @@ jobs: run: gh workflow run bump-formula.yml --repo RedMadRobot/homebrew-formulae --field formula=figma-export --field version=${{ github.event.release.tag_name }} env: GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + + release-linux: + name: Linux release + runs-on: ubuntu-22.04 + container: + image: swift:5.7.1-jammy + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build + run: | + swift build -c release + cp ./.build/release/figma-export ./Release/figma-export + cp -r ./.build/release/figma-export_AndroidExport.resources ./Release/figma-export_AndroidExport.resources + zip -r figma-export.zip Release LICENSE + + - name: "Upload assets to a release" + run: gh release upload ${{ github.event.release.tag_name }} figma-export-linux.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac1ea6b3..dc837683 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,3 +33,24 @@ jobs: uses: actions/checkout@v2 - name: Build and test run: swift test --disable-automatic-resolution --skip XcodeExportTests + + test-release-linux: + name: FOR TESTING PURPOSE ONLY + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build + run: | + swift --version + swift build -c release + cp ./.build/release/figma-export ./Release/figma-export + cp -r ./.build/release/figma-export_AndroidExport.resources ./Release/figma-export_AndroidExport.resources + zip -r figma-export.zip Release LICENSE --verbose + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: figma-export.zip + path: figma-export.zip \ No newline at end of file