From 02a6f601df413cd721efb82ae4e30751f984592c Mon Sep 17 00:00:00 2001 From: Mumtahin Farabi Date: Tue, 6 Aug 2024 03:21:29 -0400 Subject: [PATCH] ci(release): create pipeline --- .github/workflows/RELEASE.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/RELEASE.yml diff --git a/.github/workflows/RELEASE.yml b/.github/workflows/RELEASE.yml new file mode 100644 index 00000000..63d0181a --- /dev/null +++ b/.github/workflows/RELEASE.yml @@ -0,0 +1,40 @@ +name: Release + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + release: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + + steps: + - name: 🛎️ Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 # All history for branches and tags + + - name: 🍞 Install Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: 📂 Install Dependencies + run: bun install + + - name: 🤖 Run Semantic Release + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + DATABASE_URL: ${{ secrets.DATABASE_URL }} + NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} + GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} + GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} + run: bun semantic-release + + - name: 💰 Profit + run: echo 🐞