Skip to content

Commit

Permalink
Merge branch 'main' into style(frontend)/activity-incomplete-transact…
Browse files Browse the repository at this point in the history
…ion-list
  • Loading branch information
BonomoAlessandro authored Nov 26, 2024
2 parents f1d64b9 + 54adc04 commit a9c131b
Show file tree
Hide file tree
Showing 47 changed files with 708 additions and 1,269 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .github/release-drafter.yml

name-template: 'Release v{{version}}'
name-template: 'v{{version}}'
tag-template: 'v{{version}}'
categories:
- title: '🚀 Features'
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/deploy-to-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
inputs:
network:
Expand Down Expand Up @@ -49,11 +51,21 @@ jobs:
- name: Determine Deployment Network
run: |
if [ "${{ github.event_name }}" == "push" ]; then
echo "NETWORK=staging" >> $GITHUB_ENV
if [ "${{ github.ref_type }}" == "branch" ]; then
echo "NETWORK=staging" >> $GITHUB_ENV
elif [ "${{ github.ref_type }}" == "tag" ]; then
echo "NETWORK=beta" >> $GITHUB_ENV
else
echo "Error: Unsupported ref type."
exit 1
fi
echo "CANISTER=frontend" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "NETWORK=${{ github.event.inputs.network }}" >> $GITHUB_ENV
echo "CANISTER=${{ github.event.inputs.canister }}" >> $GITHUB_ENV
else
echo "Error: Unsupported event type."
exit 1
fi
- name: Check release policy
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ jobs:
git tag "v${{ steps.get_version.outputs.version }}"
git push origin "v${{ steps.get_version.outputs.version }}"
- name: Draft Release Notes
id: draft_release
- name: Publish Release Notes
id: publish_release
uses: release-drafter/release-drafter@v6
with:
version: "v${{ steps.get_version.outputs.version }}"
token: ${{ secrets.GIX_CREATE_PR_PAT }}
version: 'v${{ steps.get_version.outputs.version }}'
tag: 'v${{ steps.get_version.outputs.version }}'
name: 'v${{ steps.get_version.outputs.version }}'
latest: true
publish: true
Loading

0 comments on commit a9c131b

Please sign in to comment.