Skip to content

Commit

Permalink
Creating auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
tmahmood authored Jul 25, 2024
1 parent 9395989 commit 4932dd4
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,33 @@ jobs:

runs-on: ubuntu-latest

steps:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Test with environment variables
run: echo $TAG_NAME - $RELEASE_NAME
env:
TAG_NAME: latest-${{ steps.date.outputs.date }}
RELEASE_NAME: latest-release-${{ steps.date.outputs.date }}
- uses: actions/checkout@v4
- run: curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 && mv tailwindcss-linux-x64 tailwindcss && chmod +x tailwindcss
- run: cd frontend && npm install && npm install rollup --global && cd ..
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- run: cargo build --release
- run: cp target/release/taskwarrior-web taskwarrior-web
- uses: actions/upload-artifact@master
- run: |
cargo build --release
cp target/release/taskwarrior-web taskwarrior-web
tar czf tw-web-$RELEASE_NAME.tar.gz dist taskwarrior-web
- name: Release
uses: softprops/action-gh-release@v2
with:
name: tw-web
path: |
taskwarrior-web
dist
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
tag_name: ${{ env.TAG_NAME }}
files: tw-web-$RELEASE_NAME.tar.gz


0 comments on commit 4932dd4

Please sign in to comment.