Skip to content

Commit

Permalink
added .env to release
Browse files Browse the repository at this point in the history
  • Loading branch information
AviiNL committed Feb 28, 2024
1 parent f498ff6 commit 57a7d8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DISCORD_TOKEN=
GUILD_ID=
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,15 @@ jobs:

- name: Collect windows artifacts
if: matrix.platform == 'windows-latest'
run: Compress-Archive -Path $env:GITHUB_WORKSPACE/release/* -DestinationPath $env:GITHUB_WORKSPACE/mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }}
run: |
cp $env:GITHUB_WORKSPACE/.env.example $env:GITHUB_WORKSPACE/release/.env
Compress-Archive -Path $env:GITHUB_WORKSPACE/release/* -DestinationPath $env:GITHUB_WORKSPACE/mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }}
- name: Collect linux artifacts
- name: Collect linux/macos artifacts
if: matrix.platform != 'windows-latest'
run: tar -czvf ${GITHUB_WORKSPACE}/mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/release/ .
run: |
cp $env:GITHUB_WORKSPACE/.env.example $env:GITHUB_WORKSPACE/release/.env
tar -czvf ${GITHUB_WORKSPACE}/mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/release/ .
- name: Upload artifacts
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 57a7d8e

Please sign in to comment.