Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mathe42 authored Sep 26, 2024
1 parent f49cc02 commit 274af2a
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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`
Expand Down

0 comments on commit 274af2a

Please sign in to comment.