Skip to content

Commit

Permalink
(build) prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevenaar committed May 30, 2022
1 parent d6ab80d commit aae98bf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Create and publish a Docker image

on:
push:
branches: ['develop']
branches:
- develop
tags:
- '*'

env:
REGISTRY: ghcr.io
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Release
on:
push:
Expand All @@ -19,13 +18,13 @@ jobs:
run: git fetch --prune --unshallow

- name: Zip Release
run: zip -x '*.git*' -r release.zip .
run: zip -x '*.git*' -r release.zip .

- name: Extract owner and repo
uses: jungwinter/split@v1.1.0
uses: jungwinter/split@v2
id: repo
with:
seperator: '/'
separator: '/'
msg: ${{ github.repository }}

- name: Install GitVersion
Expand All @@ -45,7 +44,7 @@ jobs:
- name: Create release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
repository: ${{ steps.repo.outputs._1 }}
milestone: ${{ steps.gitversion.outputs.majorMinorPatch }}
Expand All @@ -56,15 +55,15 @@ jobs:
- name: Publish release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
repository: ${{ steps.repo.outputs._1 }}
tagName: ${{ steps.gitversion.outputs.majorMinorPatch }}

- name: Close release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
repository: ${{ steps.repo.outputs._1 }}
milestone: ${{ steps.gitversion.outputs.majorMinorPatch }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN mkdir -p /usr/src/bot
WORKDIR /usr/src/bot

COPY package.json yarn.lock /usr/src/bot/
RUN ["yarn", "install"]
RUN ["yarn", "install", "--frozen-lockfile", "--prod"]

COPY . /usr/src/bot

Expand Down
1 change: 1 addition & 0 deletions GitReleaseManager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ issue-labels-include:
- Improvement
- Documentation
- security
- enhancement
issue-labels-exclude:
- Build
issue-labels-alias:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "charliespring",
"version": "0.1.0-dev",
"version": "0.1.0",
"description": "A discord bot for our HeartStopper server",
"main": "src/index.js",
"private": "true",
Expand Down

0 comments on commit aae98bf

Please sign in to comment.