-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: publish release and to GitHub Actions Marketplace (#41)
- Loading branch information
1 parent
8a6950e
commit 5bbdad0
Showing
9 changed files
with
106 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright The Notary Project Authors. | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Update major and minor tags | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-major-minor-tags: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.release.tag_name }} | ||
- name: Git config | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Tag and push new major and minor versions | ||
run: | | ||
VERSION=${{ github.event.release.tag_name }} | ||
MAJOR=$(echo ${VERSION} | cut -d '.' -f 1) | ||
MINOR=${MAJOR}.$(echo ${VERSION} | cut -d '.' -f 2) | ||
if [ -z ${VERSION} ] | ||
then | ||
echo "released tag cannot be empty" | ||
exit 1 | ||
else | ||
echo "released tag is ${VERSION}" | ||
fi | ||
if [ -z ${MAJOR} ] | ||
then | ||
echo "major tag cannot be empty" | ||
exit 1 | ||
else | ||
echo "major tag is ${MAJOR}" | ||
fi | ||
if [ -z ${MINOR} ] | ||
then | ||
echo "minor tag cannot be empty" | ||
exit 1 | ||
else | ||
echo "minor tag is ${MINOR}" | ||
fi | ||
git tag -f ${MAJOR} ${VERSION} | ||
git tag -f ${MINOR} ${VERSION} | ||
git push origin ${MAJOR} --force | ||
git push origin ${MINOR} --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright The Notary Project Authors. | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: 'Notation Setup' | ||
description: Set up Notation CLI on GitHub Action runners for signing and verifying OCI artifacts | ||
branding: | ||
icon: shield | ||
color: blue | ||
inputs: | ||
version: | ||
description: version of official Notation CLI [release](https://github.com/notaryproject/notation/releases). This field is ignored if 'url' is present. | ||
required: false | ||
default: "1.0.0" | ||
url: | ||
description: url of customized Notation CLI to install | ||
required: false | ||
checksum: | ||
description: SHA256 of the customized Notation CLI. Required if 'url' is present. | ||
required: false | ||
runs: | ||
using: node16 | ||
main: ./dist/setup.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters