Repository navigation
fix: update skype definition #5
This file contains hidden or 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
| name: Build and Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Compile Services | |
| run: go run main.go | |
| - name: Upload Compiled Services | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: services-compiled | |
| path: services.json | |
| retention-days: 90 | |
| - name: Create Release and Upload Asset | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| VERSION=$(date +%Y%m%d-%H%M%S) | |
| TAG_NAME="release-${VERSION}" | |
| echo "Creating release ${TAG_NAME}" | |
| gh release create "${TAG_NAME}" \ | |
| --title "Services ${VERSION}" \ | |
| --notes "Combined service definitions" \ | |
| --latest \ | |
| services.json |