File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 runs-on : macos-latest
2323 timeout-minutes : 10
2424 steps :
25- - uses : actions/checkout@v4
25+ - uses : actions/checkout@v5
2626
2727 - name : Test configure script with environment variables
2828 env :
5454 name : generated-project
5555 path : OUTPUT/TestModule/
5656 include-hidden-files : true
57- deploy-generated-project :
58- name : Deploy generated project to test branch
59- needs : test-configure-script
60- runs-on : ubuntu-latest
61- timeout-minutes : 10
62- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
63- steps :
64- - name : Download generated project
65- uses : actions/download-artifact@v4
66- with :
67- name : generated-project
68- path : generated/
69-
70- - name : Push to production branch
71- run : |
72- cd generated
73- git init
74- git config user.name "GitHub Actions"
75- git config user.email "actions@github.com"
76- git add .
77- git commit -m "Generated project from main commit ${{ github.sha }}"
78- git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
79- git push -f origin HEAD:production
You can’t perform that action at this time.
0 commit comments