Skip to content

Commit

Permalink
W
Browse files Browse the repository at this point in the history
  • Loading branch information
daggy1234 authored Apr 7, 2021
1 parent 41078a7 commit d42d8a8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,33 @@ jobs:
- name: Extract crate information
shell: bash
run: |
mkdir compiled
cp -r templates compiled/templates
cp -r static compiled/static
cp target/${{ matrix.arch.target }}/release/${{ env.PROJECT_NAME }} compiled/${{ env.PROJECT_NAME }}
mkdir ${{ env.PROJECT_NAME }}-${{ matrix.arch.target }}
cp -r templates ${{ env.PROJECT_NAME }}-${{ matrix.arch.target }}/templates
cp -r static ${{ env.PROJECT_NAME }}-${{ matrix.arch.target }}/static
cp target/${{ matrix.arch.target }}/release/${{ env.PROJECT_NAME }} ${{ env.PROJECT_NAME }}-${{ matrix.arch.target }}/${{ env.PROJECT_NAME }}
- name: Upload package artifact
uses: actions/upload-artifact@master
with:
name: '${{ env.PROJECT_NAME }}.v${{ env.PROJECT_VERSION }}.${{ matrix.arch.target }}'
path: ./compiled
name: artifact
path: ./${{ env.PROJECT_NAME }}-${{ matrix.arch.target }}

release:
needs: CD
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- name: Release
uses: softprops/action-gh-release@v1
with:
body: |
view the CHANGELOG.md for full changes
files: |
dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "image-uploader"
version = "0.2.4"
version = "0.2.5"
authors = ["GitHub <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit d42d8a8

Please sign in to comment.