mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
made the publish workflow only run on master
enabled tagging again
This commit is contained in:
parent
adb2635691
commit
f002c8dba1
140
.github/workflows/publish.yml
vendored
140
.github/workflows/publish.yml
vendored
@ -2,8 +2,8 @@ name: gradido publish CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -263,71 +263,71 @@ jobs:
|
|||||||
- name: Push Nginx
|
- name: Push Nginx
|
||||||
run: docker push --all-tags gradido/nginx
|
run: docker push --all-tags gradido/nginx
|
||||||
|
|
||||||
# # JOB: GITHUB TAG LATEST VERSION #############################################
|
# JOB: GITHUB TAG LATEST VERSION #############################################
|
||||||
# ##############################################################################
|
##############################################################################
|
||||||
# ##############################################################################
|
##############################################################################
|
||||||
# github_tag:
|
github_tag:
|
||||||
# name: Tag latest version on Github
|
name: Tag latest version on Github
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [upload_to_dockerhub]
|
needs: [upload_to_dockerhub]
|
||||||
# steps:
|
steps:
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: Checkout code
|
- name: Checkout code
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0 # Fetch full History for changelog
|
fetch-depth: 0 # Fetch full History for changelog
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # SET ENVS ###############################################################
|
# SET ENVS ###############################################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: ENV - VERSION
|
- name: ENV - VERSION
|
||||||
# run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
|
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
|
||||||
# - name: ENV - BUILD_DATE
|
- name: ENV - BUILD_DATE
|
||||||
# run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
|
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
|
||||||
# - name: ENV - BUILD_VERSION
|
- name: ENV - BUILD_VERSION
|
||||||
# run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
||||||
# - name: ENV - BUILD_COMMIT
|
- name: ENV - BUILD_COMMIT
|
||||||
# run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
|
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # Push version tag to GitHub #############################################
|
# Push version tag to GitHub #############################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # TODO: this will error on duplicate
|
# TODO: this will error on duplicate
|
||||||
# #- name: package-version-to-git-tag
|
#- name: package-version-to-git-tag
|
||||||
# # uses: pkgdeps/git-tag-action@v2
|
# uses: pkgdeps/git-tag-action@v2
|
||||||
# # with:
|
# with:
|
||||||
# # github_token: ${{ secrets.GITHUB_TOKEN }}
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# # github_repo: ${{ github.repository }}
|
# github_repo: ${{ github.repository }}
|
||||||
# # version: ${{ env.VERSION }}
|
# version: ${{ env.VERSION }}
|
||||||
# # git_commit_sha: ${{ github.sha }}
|
# git_commit_sha: ${{ github.sha }}
|
||||||
# # git_tag_prefix: "v"
|
# git_tag_prefix: "v"
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # Push build tag to GitHub ###############################################
|
# Push build tag to GitHub ###############################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: package-version-to-git-tag + build number
|
- name: package-version-to-git-tag + build number
|
||||||
# uses: pkgdeps/git-tag-action@v2
|
uses: pkgdeps/git-tag-action@v2
|
||||||
# with:
|
with:
|
||||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# github_repo: ${{ github.repository }}
|
github_repo: ${{ github.repository }}
|
||||||
# version: ${{ env.BUILD_VERSION }}
|
version: ${{ env.BUILD_VERSION }}
|
||||||
# git_commit_sha: ${{ github.sha }}
|
git_commit_sha: ${{ github.sha }}
|
||||||
# git_tag_prefix: "b"
|
git_tag_prefix: "b"
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # Push release tag to GitHub #############################################
|
# Push release tag to GitHub #############################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: yarn install
|
- name: yarn install
|
||||||
# run: yarn install
|
run: yarn install
|
||||||
# - name: generate changelog
|
- name: generate changelog
|
||||||
# run: yarn auto-changelog --latest-version ${{ env.VERSION }} --unreleased-only
|
run: yarn auto-changelog --latest-version ${{ env.VERSION }} --unreleased-only
|
||||||
# - name: package-version-to-git-release
|
- name: package-version-to-git-release
|
||||||
# continue-on-error: true # Will fail if tag exists
|
continue-on-error: true # Will fail if tag exists
|
||||||
# id: create_release
|
id: create_release
|
||||||
# uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
# with:
|
with:
|
||||||
# tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
# release_name: ${{ env.VERSION }}
|
release_name: ${{ env.VERSION }}
|
||||||
# body_path: ./CHANGELOG.md
|
body_path: ./CHANGELOG.md
|
||||||
# draft: false
|
draft: false
|
||||||
# prerelease: false
|
prerelease: false
|
||||||
Loading…
x
Reference in New Issue
Block a user