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 19871ee
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 154 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,3 @@ jobs:
fetch-depth: 0
- name: Check Conventional Commits linting.
run: earthly --ci +check-conventional-commits-linting --from_reference "origin/${{ github.base_ref }}"
next-version:
name: Next Version
runs-on: ubuntu-latest
steps:
- name: Download Earthly v0.7.17.
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.7.17/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Checkout code.
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Check Conventional Commits next version.
run: earthly --ci +check-conventional-commits-next-version --from_reference "origin/${{ github.base_ref }}"
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
30 changes: 0 additions & 30 deletions .github/workflows/releasing.yml

This file was deleted.

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 19871ee

Please sign in to comment.