Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
BUILD: testing release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperC286 committed Dec 21, 2023
1 parent 5329ac4 commit 2cf33d9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 111 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: simple
26 changes: 0 additions & 26 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ COPY_METADATA:
COMMAND
DO +COPY_CI_DATA
COPY ".git" ".git"
COPY "./VERSION" "./VERSION"


rust-base:
Expand All @@ -34,14 +33,6 @@ check-conventional-commits-linting:
RUN ./ci/check-conventional-commits-linting.sh --from-reference "${from_reference}"


check-conventional-commits-next-version:
FROM +rust-base
RUN cargo install conventional_commits_next_version --version 6.0.0
DO +COPY_METADATA
ARG from_reference="origin/HEAD"
RUN ./ci/check-conventional-commits-next-version.sh --from-reference "${from_reference}"


INSTALL_DEPENDENCIES:
COMMAND
COPY "go.mod" "go.mod"
Expand Down Expand Up @@ -205,20 +196,3 @@ unit-test:
DO +INSTALL_DEPENDENCIES
DO +COPY_SOURCECODE
RUN ./ci/unit-test.sh


release:
FROM +ubuntu-base
RUN apt-get install wget git -y
# Install GitHub CLI.
ENV GH_VERSION=2.30.0
RUN wget "https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.tar.gz"
RUN tar -xzvf "gh_${GH_VERSION}_linux_amd64.tar.gz"
RUN cp "./gh_${GH_VERSION}_linux_amd64/bin/gh" /bin/gh
# Install Git Cliff.
ENV GIT_CLIFF_VERSION=1.2.0
RUN wget "https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
RUN tar -xzvf "git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
RUN cp "./git-cliff-${GIT_CLIFF_VERSION}/git-cliff" /bin/git-cliff
DO +COPY_METADATA
RUN --secret GH_TOKEN ./ci/release.sh
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

66 changes: 0 additions & 66 deletions ci/check-conventional-commits-next-version.sh

This file was deleted.

18 changes: 0 additions & 18 deletions ci/release.sh

This file was deleted.

0 comments on commit 2cf33d9

Please sign in to comment.