Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irving armenta patch 1 #13

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 61 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,74 @@ on:
- development
- staging
workflow_dispatch:
inputs:
target_branch:
description: 'Select target branch'
required: true
type: choice
options:
- main
- development
- staging

jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ github.ref_name == 'main' && 'production' || github.ref_name }}
if: |
github.ref_name == 'main' ||
github.ref_name == 'development' ||
github.ref_name == 'staging'

environment: ${{ github.event.inputs.environment }}

steps:
- name: Set environment from branch
id: set_environment
run: |
echo "ENVIRONMENT=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

- name: Checkout code
uses: actions/checkout@v2

- name: Show variable
run: |
echo "Deploying the site: ${{ vars.APP_URL }}"

- name: Deploy to ${{ github.event.inputs.environment }}
run: |
echo "Deploying to ${{ github.event.inputs.environment }} environment"
# Your deploy script/commands here
- name: Logging
run: |
echo "${{toJSON(github.event.commits[0].message)}}"

- name: Checkout code
uses: actions/checkout@v4

- name: Show variable
run: |
echo "Deploying the site: ${{ vars.APP_URL }}"

- name: Increment version from repository's tags
id: semver-tags
uses: SOLIDSoftworks/semver-tags@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag-prefix: 'stg-'
default-version: 'stg-0.0.0'
dry-run: true

- name: Create new tag
run: |
new_tag="stg-${{ steps.semver-tags.outputs.semantic-version }}"
echo "NEW_TAG=$new_tag" >> "$GITHUB_ENV"
git tag $new_tag
git push origin $new_tag

- name: Generate changelog
id: changelog
run: |
prev_tag="${{ steps.semver-tags.outputs.previous-version }}"
if git log --pretty=format:"%h - %s (%an, %ad)" "$prev_tag..HEAD" > changelog.txt 2>/dev/null; then
log=$(cat changelog.txt)
else
log="${{ github.event.commits[0].message }}"
fi
echo "body=$log" >> "$GITHUB_ENV"

- name: Create and publish release
id: create_release
uses: ncipollo/release-action@v1
with:
name: "Staging release ${{ env.NEW_TAG }}"
body: ${{ env.body }}
tag: ${{ env.NEW_TAG }}
prerelease: true

- name: Deploy to ${{ github.ref_name }} environment
run: |
echo "Deploying to ${{ github.ref_name }} environment"
# Your deploy script/commands here
91 changes: 0 additions & 91 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,97 +8,6 @@
>vue-cli documentation</a
>.
</p>
<h3>Installed CLI Plugins</h3>
<ul>
<li>
<a
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel"
target="_blank"
rel="noopener"
>babel</a
>
</li>
<li>
<a
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript"
target="_blank"
rel="noopener"
>typescript</a
>
</li>
<li>
<a
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex"
target="_blank"
rel="noopener"
>vuex</a
>
</li>
<li>
<a
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
target="_blank"
rel="noopener"
>eslint</a
>
</li>
</ul>
<h3>Essential Links</h3>
<ul>
<li>
<a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
</li>
<li>
<a href="https://forum.vuejs.org" target="_blank" rel="noopener"
>Forum</a
>
</li>
<li>
<a href="https://chat.vuejs.org" target="_blank" rel="noopener"
>Community Chat</a
>
</li>
<li>
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener"
>Twitter</a
>
</li>
<li>
<a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
</li>
</ul>
<h3>Ecosystem</h3>
<ul>
<li>
<a href="https://router.vuejs.org" target="_blank" rel="noopener"
>vue-router</a
>
</li>
<li>
<a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
</li>
<li>
<a
href="https://github.com/vuejs/vue-devtools#vue-devtools"
target="_blank"
rel="noopener"
>vue-devtools</a
>
</li>
<li>
<a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener"
>vue-loader</a
>
</li>
<li>
<a
href="https://github.com/vuejs/awesome-vue"
target="_blank"
rel="noopener"
>awesome-vue</a
>
</li>
</ul>
</div>
</template>

Expand Down
Loading