Skip to content

Commit

Permalink
Merge branch 'release/1.0.0-alpha.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
nekofar committed Sep 21, 2023
2 parents ae57d73 + da434f8 commit 8f5e30f
Show file tree
Hide file tree
Showing 21 changed files with 2,069 additions and 1,471 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "wasm32-unknown-unknown"
25 changes: 19 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,26 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

# This compiles the application.
- name: Build the application and export it
run: cargo build --verbose
- name: Install stable toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Check for errors
uses: actions-rs/cargo@v1.0.1
with:
command: check

- name: Install worker-build
uses: actions-rs/cargo@v1.0.1
with:
command: install
args: worker-build

# Runs unit tests for the application using Jest.
- name: Execute tests using Cargo
run: cargo test --verbose
- name: Build by worker-build
run: worker-build

release:
name: Create Release
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy & Publish
on:
release:
types: [ prereleased, released ]

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/checkout@v3.6.0
with:
ref: ${{ github.event.release.tag_name }}

# Cache dependencies to speed up builds
- name: Cache cargo dependencies
uses: actions/cache@v3.3.2
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/toolchain@v1.0.6
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Install worker-build
uses: actions-rs/cargo@v1.0.1
with:
command: install
args: worker-build

- name: Build by worker-build
run: worker-build

- name: Deploy to Workers
uses: cloudflare/wrangler-action@v3.1.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/target
/tmp
/report.*
/node_modules
/.wrangler
33 changes: 32 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,38 @@

All notable changes to this project will be documented in this file.

## [unreleased]
## [1.0.0-alpha.8] - 2023-09-21

### Bug Fixes

- Replace incorrect field mapping in Prop House comment model

### Refactor

- Remove caching system from project
- Update fetcher functions to use worker env
- Update fetcher to use GraphQLFetcher struct
- Add caching functionality to enhance performance
- Move code into `lib.rs` for modularity and error handling
- Update caching and fetching mechanism
- Update the `pnpm-lock.yaml` and `Cargo.lock` files
- Update DiscordHandler to use a custom in-memory cache system
- Update formatting and date variable in prop handlers

### Miscellaneous Tasks

- Add `package.json` for LilNouns bots project
- Add `wrangler.toml` configuration for deployment
- Add `wasm-pack` and additional dependencies in `Cargo.toml`
- Add `node_modules` to `.gitignore`
- Update `package.json` for deployment and development
- Add `wasm32` target to Cargo configuration
- Update and rearrange dependencies
- Update `dev` script in `package.json`
- Add `.wrangler` to `.gitignore`
- Update build process in GitHub Actions workflow

## [1.0.0-alpha.7] - 2023-09-19

### Refactor

Expand Down
Loading

0 comments on commit 8f5e30f

Please sign in to comment.