Skip to content

kibana教程续写报表部分 #68

kibana教程续写报表部分

kibana教程续写报表部分 #68

Workflow file for this run

name: Generate Pdf and Release
# refer to https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
paths-ignore:
- '**.html'
- 'static/**'
- 'no_used/**'
env:
CACHE_FROM_DIR: /tmp/.buildx-cache
DOCKER_BUILDKIT: 1
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Docker Buildx
id: buildx
# Use the action from the master, as we've seen some inconsistencies with @v1
# Issue: https://github.com/docker/build-push-action/issues/286
uses: docker/setup-buildx-action@master
# Only worked for us with this option on 🤷‍♂️
with:
install: true
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: ${{ env.CACHE_FROM_DIR }}
# Key is named differently to avoid collision
key: ${{ runner.os }}-multi-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-multi-buildx
- name: Init
run: |
mkdir -p output
# Build and push Docker image with Buildx (don't push on PR)
- name: Build And Gen Pdf
working-directory: ./
run: ./gen_pdf.sh
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")"
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: ./output/${{ github.sha }}.pdf
draft: false
prerelease: true