Skip to content

Commit fbd0c02

Browse files
committed
push code
1 parent a73fa21 commit fbd0c02

2 files changed

Lines changed: 43 additions & 82 deletions

File tree

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,57 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
21
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
6+
paths-ignore:
7+
- 'VERSION'
108
workflow_dispatch:
119

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1310
permissions:
14-
contents: read
11+
contents: write
1512
pages: write
1613
id-token: write
1714

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2015
concurrency:
2116
group: "pages"
2217
cancel-in-progress: false
2318

2419
jobs:
25-
# Build job
2620
build:
2721
runs-on: ubuntu-latest
22+
outputs:
23+
version: ${{ steps.version.outputs.VERSION }}
2824
steps:
2925
- name: Checkout
3026
uses: actions/checkout@v4
27+
28+
- name: Set version
29+
id: version
30+
run: |
31+
VERSION="1.0.${{ github.run_number }}"
32+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
33+
echo "$VERSION" > VERSION
34+
35+
- name: Commit version file
36+
run: |
37+
git config user.name "github-actions[bot]"
38+
git config user.email "github-actions[bot]@users.noreply.github.com"
39+
git add VERSION
40+
git diff --staged --quiet || git commit -m "Bump version to ${{ steps.version.outputs.VERSION }} [skip ci]"
41+
git push
42+
3143
- name: Setup Pages
3244
uses: actions/configure-pages@v5
45+
3346
- name: Build with Jekyll
3447
uses: actions/jekyll-build-pages@v1
3548
with:
3649
source: ./
3750
destination: ./_site
51+
3852
- name: Upload artifact
3953
uses: actions/upload-pages-artifact@v3
4054

41-
# Deployment job
4255
deploy:
4356
environment:
4457
name: github-pages
@@ -49,3 +62,23 @@ jobs:
4962
- name: Deploy to GitHub Pages
5063
id: deployment
5164
uses: actions/deploy-pages@v4
65+
66+
release:
67+
runs-on: ubuntu-latest
68+
needs: build
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v4
72+
73+
- name: Create Release
74+
uses: softprops/action-gh-release@v1
75+
with:
76+
tag_name: v${{ needs.build.outputs.version }}
77+
name: Release ${{ needs.build.outputs.version }}
78+
body: |
79+
## MCAF Release ${{ needs.build.outputs.version }}
80+
81+
Managed Code Coding AI Framework
82+
draft: false
83+
prerelease: false
84+
generate_release_notes: true

.github/workflows/pages.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)