Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 788 Bytes

README.md

File metadata and controls

38 lines (32 loc) · 788 Bytes

teamcity-deployment-action

Action to manage Teamcity Deployments

Usage

Trigger

name: Release

on:
  release:
    types:
      - released
  workflow_dispatch:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Prepare
        id: prep
        shell: bash
        run: |
          VERSION=${GITHUB_REF#refs/tags/}
          echo ::set-output name=version::${VERSION}
      # some build actions
      - uses: sitkoru/teamcity-deployment-action@v1
        name: Create Teamcity deployment
        with:
          token: ${{ secrets.TEAMCITY_TOKEN }}
          url: ${{ secrets.TEAMCITY_URL }}
          ids: ${{ secrets.TEAMCITY_BUILD_IDS }}
          version: ${{ github.event.deployment.description }}