Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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