-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,40 +3,40 @@ name: CI | |
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
compress: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: pnpm/action-setup@0609f0983b7a228f052f81ef4c3d6510cae254ad | ||
with: | ||
version: 6.27.1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'pnpm' | ||
- run: pnpm i | ||
- run: node ./compress.mjs | ||
- name: Commit | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: compress images | ||
- name: save sha | ||
id: ec_sha | ||
run: | | ||
echo "::set-output name=sha::$(git log -1 --format=format:"%H")" | ||
- name: Deploy Link | ||
uses: Sibz/github-status-action@v1 | ||
with: | ||
authToken: ${{secrets.GITHUB_TOKEN}} | ||
context: 'deploy' | ||
description: Deployed at https://preview.ec-nordbund.de/${{github.ref_name}} | ||
target_url: https://preview.ec-nordbund.de/${{github.ref_name}} | ||
state: 'success' | ||
sha: ${{steps.ec_sha.outputs.sha}} | ||
#compress: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: pnpm/action-setup@0609f0983b7a228f052f81ef4c3d6510cae254ad | ||
# with: | ||
# version: 6.27.1 | ||
# - name: Use Node.js ${{ matrix.node-version }} | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16.x | ||
# cache: 'pnpm' | ||
# - run: pnpm i | ||
# - run: node ./compress.mjs | ||
# - name: Commit | ||
# uses: stefanzweifel/[email protected] | ||
# with: | ||
# commit_message: compress images | ||
# - name: save sha | ||
# id: ec_sha | ||
# run: | | ||
# echo "::set-output name=sha::$(git log -1 --format=format:"%H")" | ||
# - name: Deploy Link | ||
# uses: Sibz/github-status-action@v1 | ||
# with: | ||
# authToken: ${{secrets.GITHUB_TOKEN}} | ||
# context: 'deploy' | ||
# description: Deployed at https://preview.ec-nordbund.de/${{github.ref_name}} | ||
# target_url: https://preview.ec-nordbund.de/${{github.ref_name}} | ||
# state: 'success' | ||
# sha: ${{steps.ec_sha.outputs.sha}} | ||
dispatch_main: | ||
runs-on: ubuntu-latest | ||
needs: [ compress ] | ||
#needs: [ compress ] | ||
if: github.ref_name == 'main' | ||
steps: | ||
# Dispatch an `merge-content` event to the `target_repo` | ||
|
@@ -53,7 +53,7 @@ jobs: | |
# client-payload: # optional, default is {} | ||
dispatch_push: | ||
runs-on: ubuntu-latest | ||
needs: [ compress ] | ||
#needs: [ compress ] | ||
if: github.ref_name != 'main' | ||
steps: | ||
# Dispatch an `merge-content` event to the `target_repo` | ||
|