-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Deploy & Publish | ||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
|
||
# Prepare and publish | ||
deploy: | ||
name: Deploy to Workers | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.event.release.tag_name }} | ||
|
||
- name: Install pnpm package manager | ||
uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
|
||
# Cache dependencies to speed up builds | ||
- name: Cache cargo dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
override: true | ||
|
||
- name: Deploy to Workers | ||
uses: cloudflare/[email protected] | ||
with: | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
command: deploy | ||
secrets: | | ||
GA_ID | ||
env: | ||
GA_ID: ${{ secrets.GA_ID }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "lilnouns-click" | ||
version = "1.1.0-beta.6" | ||
version = "1.1.0-beta.7" | ||
authors = ["Milad Nekofar <[email protected]>"] | ||
edition = "2021" | ||
description = "A Nounish URL shortener for LilNouns DAO." | ||
|