Skip to content

WIP: mod: .github/workflows/build.yml (main) #65

WIP: mod: .github/workflows/build.yml (main)

WIP: mod: .github/workflows/build.yml (main) #65

Workflow file for this run

# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*-
---
name: build
on: # yamllint disable-line rule:truthy
push:
# pull_request:
# types: [labeled]
jobs:
build:
runs-on: ubuntu-latest
# if: contains(github.event.pull_request.labels.*.name, 'safe to build and test')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: 'CrossStream/crossstream'
- id: tag
run: echo "tag=$(git describe --tags --always)" >> $GITHUB_OUTPUT
- id: contents
env:
file: ${{ runner.temp }}/${{ github.event.repository.name }}.txt
run: >
echo ${{ steps.log.outputs.tag }}
> ${{ env.file }}
# - name: Release
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# # note you'll typically need to create a personal access token
# # with permissions to create releases in the other repo
# token: ${{ secrets.GH_ZWAVE_ACCESS_TOKEN }}
# files: "*.txt"
# - name: build
# run: docker build --tag "${{ github.event.repository.name }}:latest" .
# - name: Upload container image
# # yamllint disable-line rule:line-length
# uses: ishworkh/container-image-artifact-upload@5d71a2417f0576fa11fe770fb04ece58c4587714 # v2.0.0
# with:
# image: "${{ github.event.repository.name }}:latest"
# retention_days: 10
- name: check
run:
ls ${{ steps.contents.file }}
- name: Upload artifacts
# yamllint disable-line rule:line-length
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
# yamllint disable-line
name: ${{ github.event.repository.name }}-bin
path: ${{ steps.contents.file }}