diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5a38a19..454981f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,8 +9,7 @@ jobs: deploy: name: Deploy to Workers runs-on: ubuntu-latest - environment: - name: ${{ github.event.release.prerelease == 'false' && 'production' || 'development' }} + environment: ${{ github.event.release.prerelease && 'development' || 'production' }} permissions: contents: write pull-requests: write @@ -51,8 +50,8 @@ jobs: with: accountId: ${{ secrets.CF_ACCOUNT_ID }} apiToken: ${{ secrets.CF_API_TOKEN }} - environment: ${{ github.event.release.prerelease == 'false' && '' || 'dev' }} - command: deploy ${{ github.event.release.prerelease == 'false' && '' || '--env dev' }} + environment: ${{ github.event.release.prerelease && 'dev' || '' }} + command: deploy ${{ github.event.release.prerelease && '-env dev' || '' }} secrets: | LIL_NOUNS_DISCORD_WEBHOOK_URL LIL_NOUNS_WARP_CAST_TOKEN diff --git a/CHANGELOG.md b/CHANGELOG.md index 15f0158..d89cca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.0.1] - 2023-10-18 + +### Miscellaneous Tasks + +- Simplify environment conditional in `deploy.yml` + ## [1.0.0] - 2023-10-18 ### Documentation diff --git a/Cargo.lock b/Cargo.lock index 3a5266e..10ad510 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1553,7 +1553,7 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "lilnouns-bots" -version = "1.0.0" +version = "1.0.1" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 5bf281f..e437f15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lilnouns-bots" -version = "1.0.0" +version = "1.0.1" authors = ["Milad Nekofar "] edition = "2021" description = "Our bots are designed to keep the Lil Nouns DAO community informed and engaged."