Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add releases workflow #452

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/call-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Release

on:
workflow_dispatch:

jobs:
release:
name: release
timeout-minutes: 15
runs-on: ubuntu-latest
steps:

- name: checkout repository
uses: actions/checkout@v3

- uses: chrnorm/deployment-action@releases/v1
name: Create GitHub deployment
id: step-deployment-action
with:
token: ${{ secrets.GITHUB_TOKEN}}
description: 'Upload AWS S3'
environment: AWS CodePipeline

- name: setup Node
uses: actions/setup-node@v3
with:
node-version: '18.12.0'

- name: cache rush
id: cache
uses: actions/[email protected]
with:
path: common/temp
key: ${{ runner.os }}-build-branch-${{ hashFiles('common/config/rush/repo-state.json') }}
restore-keys: |
${{ runner.os }}-build-pr-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Setup git
run: |
git config user.name github-actions
git config user.email [email protected]

- name: install pnpm needed for cdk NodeJsFunction esbuild
run: npm install --global [email protected]

- name: rush install
run: node common/scripts/install-run-rush.js install -p

- name: rush build
run: node common/scripts/install-run-rush.js build

- name: rush build:project
run: node common/scripts/install-run-rush.js build:project

- name: Upload items to Github Release
uses: ncipollo/[email protected]
with:
tag: ${{ github.ref_name }}
body: |
# New Release: [@cats-cradle ${{ github.ref_name }}](https://www.npmjs.com/search?q=%40cats-cradle),

We're pleased to share our latest release, which comprises multiple zip files, each housing a distinct, deploy-ready project from @cats-cradle. Within each package, you'll find the project's code and Infrastructure as Code (IaC) authored in AWS CDK v2 for streamlined deployment.

We warmly invite you to delve into the contents of this release, offer your valuable feedback, and actively engage in our project on GitHub. Your contributions and active participation are fundamental to our ongoing efforts to enhance and refine our offerings.

We extend my gratitude for choosing @cats-cradle and anticipate your invaluable involvement in our expanding community.
artifacts: 'common/temp/dist/*.zip'
prerelease: false
draft: true
generateReleaseNotes: true
token: ${{ github.token }}
owner: hxtee
repo: cats-cradle
Loading